eugene.litvinov Posted February 14, 2011 Share Posted February 14, 2011 We have some problem with physics module, see screenshot: On the first screenshot you can see scene samples/shapes/box_00 on start - profiler shows smooth lines. On the second screenshot profiler shows jagged curve - this screenshot was made when the boxes stood still (was frozen). But physical part of unigine continues to use CPU. This behavior always appears on my computer (I restart computer, open unigine with ambient_d3d9.bat, then open box00 sapmle). I have: CPU: Intel Core i3 CPU 3.2 GHz RAM: 2 Gb VideoCard: NVIDIA GeForce GT 240 1Gb Link to comment
eugene.litvinov Posted February 17, 2011 Author Share Posted February 17, 2011 It seems like when some physical bodies "live" ever when they was frozen. In profiler we see some parameter - PSimulation, that takes much extra time (see screenshot). This time are increasing while game is run, and take up to 500 ms! What exactly do PSimulation part of engine? This behavior appears on all office computers (5 systems with similar configuration) and on home computers too. Link to comment
manguste Posted February 17, 2011 Share Posted February 17, 2011 Even if they were frozen (i.e. their linear and angular velocities = 0), they still need to be checked every physics tick if they have collided with any object. PSimulation is the time of physics update. See Principles of Operation -> Physics -> Simulation of Physics and Programming -> Execution Sequence. Global physics settings (FPS, iteratioins, frozen velocities) are found here: Tools -> Unigine Editor -> Physics Settings. As for jaggedness, you can try disabling multi-threading (physics_num_threads console command), that might help. Link to comment
Recommended Posts