but when I add just as little as 10 cubes to rool on - the fps drops dramatically like to 6-8 fps.
It seems to stop lagging when objects stop touching themselves, but lags anyway but less.
How it come? I tries various thnings like:
- - Update in World Drawing - with time and without time parameter
- Update from another thread - seems a LITTLE faster but introduces weird artifacts like jumping entities
- Update from enternal thread and set meshes position immidiately - on opengl side - no change
- Using paraller looper don't change anything
Code: Select all
PhysicalWorld = new Space(parallelLooper);
PhysicalWorld.Solver.AllowMultithreading = true;
PhysicalWorld.ForceUpdater.Gravity = new Vector3(0, -9.81f, 0);
SolverSettings.DefaultMinimumIterationCount = 0;
PhysicalWorld.TimeStepSettings.MaximumTimeStepsPerFrame = 4;
PhysicalWorld.Solver.IterationLimit = 4;
GeneralConvexPairTester.UseSimplexCaching = true;