RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
991 stars 175 forks source link

Nodes far away from actor origin result in huge fps drop #3058

Closed CuriousMike56 closed 10 months ago

CuriousMike56 commented 1 year ago

As the title says, any nodes that are far away from the actor origin (defined by cameras/cinecam/extcamera?) will eventually cause the frame rate to plummet, rendering the game unplayable. This can be reproduced in a variety of ways, such as flinging detachable parts using the node grabber or by driving the Lotus Esprit with its cinecam nodes that are left behind on spawn.

Attached is a test vehicle with a node that's very far away:

;far away node - kills framerate 
21,  100000,  0.1,  0.0, l 4

faraway-node-fps-drop-test.zip

You will likely have to press backspace for the issue to occur as it seems to rarely happen on initial spawn or when pressing the I key.

RoR_2023-06-17_14-08-51

This bug is not present on 2022.12.

tritonas00 commented 1 year ago

This bug is not present on 2022.12.

QFE