keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Quadruple THINGS_COUNT

Open walt253 opened this issue 1 year ago • 5 comments

From 8192 to 32767.

I assume it's a short?

Why this PR?

Support for big maps 170x170 that are 4 times larger than a standard sized map.

walt253 avatar Dec 10 '23 22:12 walt253

It works:

image

test_map.zip

But I noticed that the game slowdown once I reach 16k+ things, but maybe it's the test map script at cause?

It spawns 240 Demonspawn per second then kill them instantly and each of them spawn 4 bag of gold.

walt253 avatar Dec 18 '23 20:12 walt253

Tested these 32k objects with Walter on my gaming PC with an I9 13900KF. low-framerate higher-framerate

Whenever a new round of bags spawn it lowers the rate to 5fps, but with 32k objects without new spawning it seems stable at 17fps which is playable.

Samsoee avatar Dec 28 '23 17:12 Samsoee

17 FPS with a high end gaming PC does not seem like such a great idea to me.

Loobinex avatar Dec 29 '23 12:12 Loobinex

17 FPS with a high end gaming PC does not seem like such a great idea to me.

Well i just tested, just loading a map where i got nothing but imps and a dungeon heart. it is about 160 fps. But isnt the game limited to 24 fps anyways?

Samsoee avatar Dec 29 '23 14:12 Samsoee

17 FPS with a high end gaming PC does not seem like such a great idea to me.

Well i just tested, just loading a map where i got nothing but imps and a dungeon heart. it is about 160 fps. But isnt the game limited to 24 fps anyways?

The game was limited to 20 fps (the same as the 20 ticks or turns per second) but now the framerate unlocked.

Loobinex avatar Dec 29 '23 16:12 Loobinex