Welcome, Guest

Author Topic: Simulation running really slow...  (Read 5074 times)


  • *
  • Posts: 1
Simulation running really slow...
« on: September 09, 2008, 09:51:13 PM »
First of all I want to say that I love messing around with your program.  It's a ton of fun

I recently purchased a new computer with dual nVidia 9800 GT's and an Ageia PhysiX Accelerator, and 4 Gig of ram and I'm getting worse performance than I had on a 6 year old computer system. 

For example,  I'm running the "Jupiter and moons" simulation, with the particle multiplier at 12.82, and I'm getting only 17 FPS.  When I boost it up to 21 the FPS drops to 6.  Considering I'm running Microsoft Flight Simulator at 20-30 on nearly-maxed out settings, I would expect to do a bit better with this program. 

Anyway, just curious if there's some setting I'm overlooking.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3243
    • Personal Site
Re: Simulation running really slow...
« Reply #1 on: September 10, 2008, 01:01:44 PM »
Thanks. I'm glad you enjoy it.


The decrease in speed isn't from drawing the particles as much as it is calculating their new velocities and positions.

Why is it slow?
Every body with mass effects every other body in a system so a system with 10 bodies with mass requires (10x10=100) gravity calculations per step. Each particle is influenced by every body with mass: Bodies with Mass x Particles in Ring x Multiplier (10x200x20=40,000 calculations per step). Adding a single body with mass increases the calculations dramatically (11x11=121 and  11x200x20=44000). If you turn down the particle multiplier then the numbers get a lot lower (11x200x2=4400)

If you pause the simulation these calculations are not performed and the frame rate goes up.

Short Answer
Your experience is about what I get on my development machine, so just turn the particle multiplier back down. :)

Why allow such high values?
It's possible to turn up the particle multiplier higher than the fastest computers can support in real time. The high values are for fast computers in the future and non-real time movie capture.

I'm not currently supporting the Ageia PhysiX Accelerator, but is something I may look into in the future.