This object is in archive! 

Permanent performance issues caused by large voxel edits

Echthros shared this bug 2 years ago
Won't Fix

I was in the process of developing a new mod that edited voxel maps as part of its functionality when I encountered a rather serious issue. For certain larger voxel removal actions (while experimenting), I was forced to force-shutdown the game in order to close out of the file since it was taking too long to resolve. On its own, that wasn't a serious issue, but I started to notice that every time I had to force close the game in the process of testing, the game performance would get a little bit worse from that point on (this happened over the course of a couple weeks). It would take longer to load in any save file. Moving fast through the world would cause the game to hitch badly when asteroids or chunks of planet were loading in, which was unusual. It seemed like some cache related to the voxel maps was continuously growing and causing every voxel map load to take longer and longer to resolve, even on a completely new world with no mods.


I realize that this probably isn't something that most people are likely to run into if it can only be triggered by force-closing the game after attempting a huge voxel edit (~600m sphere on planet). But the fact that the issue was causing a permanent loss of performance on all files struck me as being particularly crazy. I was eventually able to repair the problem by fully reinstalling the game.

Replies (3)

photo
1

Hello, Alec,

thanks for letting us know about this one.

As even you states it´s kinda hard to reproduce. I would really appreciate to have some more information on this one as e.g. video, save file or information what planets and how much did you voxel-edited it.

If you can provide any of these, it would be great help!

Kind Regards

Keen Software House: QA Department

photo
1

The main planet I was using was the default EarthLike. The voxel edits were spherical removals of ~700m radius on the surface of the planet (though anything larger should work and might trigger the issue faster, potentially). After attempting the removal, I tried to quit out of the file without saving. The game would get stuck with the loading wheel on screen and be unable to return to the main menu. I would then tab out of the game and force close it with the task manager. In total I think I did this about 10 times? Doing it more times or with larger removals might trigger the issue more severely.

photo
1

Here is a log from when I was still experiencing the issue. There may be some print statements mixed in from my own mod testing.

photo
1

I also recall that my "Thread CPU Load" value in the debug display was extremely high while I was observing the issue (>20ms). This was happening even when nothing was really happening in-game (floating in my suit at rest in space with no grids nearby). Loading into files would also take several minutes (whereas with the issue fixed, it only takes a few seconds).

photo
1

I did also notice that lowering the View Distance did significantly reduce the hitching I was seeing, presumably because fewer asteroids would get loaded in as I moved around. Normally my computer can handle higher view distances with no issues.

photo
1

I did also save out the entire contents of my AppData/Roaming folder for SpaceEngineers before reinstalling, so I can retrieve anything inside it if it's needed. I looked to see if there were any suspiciously large files or folders, but I wasn't able to find anything that seemed unusual.

photo
photo
1

Hello, Alec,

so I did try it but no luck so far.

Are you still suffering with this issue? Can you please provide me affected save file that is breaking the game as such as you write?

Also what buzz me is the fact that you are writing that you use voxel hand with radius 600-700 meters.

I can set the maximum value to 100. Are you using some mod for this enlargement, do you have something changed in sbc file or somewhere else? How exactly are you able to set the radius higher than it is? See image below:

/9039fc21953df17a003d2ad45511557a

Please let me know the information that I asked and please provide me video and some of the affected saves/the one that is the origin of this issue (with the mod or something else that allows you to exceed radius max).

Thanks in advance.

Kind Regards

Keen Software House: QA Department

photo
1

Hello, Engineer!

Because there is no new comment from you, and we are unable to reproduce the issue on our own, I will close this thread now as outdated.

If you or any other player will experience this issue again, please make a new thread and provide all needed info there.

Thank you for understanding.

Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file