Repository metrics
- Stars
- (3,524 stars)
- PR merge metrics
- (PR metrics pending)
Description
The issue first appeared on the Skadovsk: when stashing a few things on the personal box there, the framerate dropped to around 10 FPS. This problem didn't exist at the beginning of the game, and it wasn't the first time I stashed something there. Removing all items from the stash didn't solve the problem. From that point on, whenever the camera is pointed towards the Skadovsk, the framerate drops. The ship doesn't actually have to be visible for this to happen: When the player looks towards it, but the Skadovsk is obscured by a hill this will still happen.
Anyway, I didn't debug the issue at the time. But now I'm at the Jupiter Underground, and the problem returned much more severely: In the main hall, I dropped a few items because I was overloaded. Immediately the framerate dropped to around 1.4 FPS. Picking up the dropped items again didn't solve the issue. So I recompiled OpenXRay with the Google Perftools and did a CPU Profile. It immediately becomes clear where the problem is:

This is for the problem in the Jupiter Underground. I started the game, loaded the savegame, turned around once and exited.
Reverting a61b93e151742baa39da1f3dd299e0e190b17908 did not solve the problem.
I'm running Gentoo Linux (x86_64) with Mesa 20.3.4 and X11. The code is from the master branch, though dev doesn't have any commits over master that change src/xrCDB/xrCDB_box.cpp (where box_collider::_stab is defined). FPS were measured using the Gallium HUD (built into Mesa).