KeenSoftwareHouse / SpaceEngineers

2.93k stars 896 forks source link

Fix for lag when recoloring blocks #529

Open Jake-Rich opened 8 years ago

Jake-Rich commented 8 years ago

When recoloring blocks on a big surface, sim-speed would drop and fps would drop (even though it doesn't in debug view).

It was marking the blocks as "dirty" which would cause the Havok physics shape to be recalculated every time blocks were being painted, however the physics shape would never change when the color changed.

You can see performance differences in this screenshot. http://imgur.com/xXWBOnb or in this youtube video. https://youtu.be/ytw4v7cd-kg

darkthing41 commented 8 years ago

I've known the physics re-calculations to cause some semi-stable Multiplayer builds to explode just by giving them a lick of paint, so stopping THAT would be nice.

Jake-Rich commented 8 years ago

New to github, and accidently un-published the wrong branch, causing it to be closed. Now reopened. Also added a video to help show the bug.