Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Poor performance with a lot of furniturephysics #249

Closed snipercup closed 2 months ago

snipercup commented 2 months ago

I say a lot, but there isn't even that much furniturephysics on the map. When walking around in a city, the framerate drops below acceptable rates. This doesn't happen in the plains. It could also be the amount of blocks in the city, but the profiler points to furniturephysics as one of the contributors here.

To test if this is an issue we can spam furniturephysics on the plains and see how the performance is.

I'm not sure how to fix it. I thought they went to sleep after not moving for a frame. We can try to freeze furniture that's away from the player.