AntonSynytsia / MSPhysics

A NewtonDynamics wrapper for SketchUp.
http://sketchucation.com/forums/viewtopic.php?f=323&t=56852#p516427
MIT License
55 stars 20 forks source link

Framerate #25

Closed ikkennigij121 closed 3 years ago

ikkennigij121 commented 3 years ago

Hello,

first of all, thank you very much for the plugin, I'm using it to get an idea of where to place joints for a project I'm working on and your physics plugin gives me an idea to find the centre of balance.

I've run into a small issue that hampers my progress a bit, nothing too serious but it slows my workflow.

I've imported my .obj model using an OBJ importer plugin and when running the simulation, it gets really laggy. FPS counter shows around 5 fps during the simulation. My model is not the heaviest in poly count, but it does have some curves and a sphere.

The strange thing is however, whenever I press the middle mousebutton during simulation to pan around, the simulation runs flawlessly with no FPS issues whatsoever and as soon as I let go, the FPS goes down again resulting in a laggy simulation.

I've tried importing the file as 3ds but this didn't change anything.

I tried simulating a simple box, and this went without issues. So I'm guessing my model is on the heavy side with regards to polygons and whatnot, but I find it strange that there's no issue when holding the middle mousebutton to pan around.

Hope you can shed some light on a possible cause.

If you need additional info, please let me know. I'm using Sketchup 2018.