rolopogo / ValheimMods

MIT License
20 stars 25 forks source link

Boats/Carts Pin causing low FPS #10

Closed FunkyBigdog closed 3 years ago

FunkyBigdog commented 3 years ago

Have not noticed it recently as I have been on and off the game. It appears that having this show on the map, is causing low FPS on my server/singleplayer. Going from my norm of 120 fps to around 15 fps. Setting the pins to false in the config resolves the issue. I did not try disabling one at a time to see if it was just the Boats pin or the Carts pin causing the issue. I just disabled both as they were newer additions to the updates.

rolopogo commented 3 years ago

I think this is from getting all ZDOs every frame, I didn't realize it was such an expensive call. I'll reduce the call rate and see if that helps.

rolopogo commented 3 years ago

This is fixed in 1.2.1 I'm spreading the ZDO search over multiple frames, which improves performance significantly