u/ToxicFlames

Highest Packing Density for Sugarcane in a chunk?

Highest Packing Density for Sugarcane in a chunk?

Am I correct in saying this is the highest possible packing efficiency for planting as much sugarcane as possible within a single chunk?

The pattern consists of 5 block + shapes with the central block replaced with a water source. This will tile the plane with a theoretical efficiency of 80%

When limiting the pattern to a single chunk, we lose 3 plantable tiles per edge, with the exception of the bottom left corner, where one of 2 adjacent 'dead' tiles can be replaced with a water source to save the other.

I count 52 water sources and 10 'dead' tiles, making the packing efficiency (256 - 52 - 10) / 256 = 75.78125%

EDIT: It looks like I missed an 11th dead tile in the bottom right corner, which brings the efficiency down to 75.390625%

EDIT 2: This paper https://www.researchgate.net/figure/Minimum-dominating-sets-of-square-grid-graphs-for-1-n-14_fig2_220342276 (paywalled unfortunately) explores the same concept in mathematics. They were able to use 60 'water sources' in order to end up with 0 'dead tiles' for a total efficiency of 76.65625%

u/ToxicFlames — 19 hours ago
▲ 4 r/winlator+1 crossposts

Hey all,

I wanted to ask whether steam input custom mappings are supported on any of the forks of winlator right now. I know that the steam input libraries are supported on gamenative and gamehub, but from my discussions with the devs it seems that full support for steam input is not implemented.

Kerbal Space Program runs really well on most winlator forks. I was even able to run it at 120fps with the new proton11arm version. It's a cool tech demo, but without proper controls the game is not really playable. On PC the steam version of KSP has interconnectivity with the with the steamworks API, and can switch controller bindings on the fly, making it quite playable with a controller, but this functionality requires full steam input to be running in order to work.

I have also tried installing desktop steam standalone in a container, installing ksp through steam, and then running the game with steaminput enabled. Whilst the controller is detected and can navigate big picture mode just fine, steam input seems to be totally broken, with the game not recognizing my controller.

I was wondering if anyone had experience with getting custom mappings working with steam input on winlator, and if they managed to successfully get a game running with custom mappings.

Thanks

u/ToxicFlames — 18 days ago