POV-Ray : Newsgroups : povray.off-topic : Speed comparison between C# and C++ : Re: Speed comparison between C# and C++ Server Time
4 Nov 2024 13:16:07 EST (-0500)
  Re: Speed comparison between C# and C++  
From: Invisible
Date: 17 Apr 2008 06:12:42
Message: <4807229a$1@news.povray.org>
scott wrote:

> Looks nice, but I'd say it definitely looks GPU bound for some strange 
> reason rather than CPU bound on my PC:
> 
> Particles  FPS   CPU %
>   0       60    00
> 200       60    00
> 300       60    01
> 320       30    05
> 
> Drawing 320 particles should NOT run at only 30 fps!  See attached 
> little demo* I made, it draws 30000 cubes in the view, and on my machine 
> runs at around 100fps (you can move around with the arrow keys).

PCI bandwidth limitation?

[Hmm, even that shouldn't be a problem with just 320 particles.]

> What I would add to your program to debug further:
> 
> a) Add an option to disable rendering each frame (ie just do the physics)
> b) Add an option to disable the physics each frame (ie just draw the 
> spheres)
> c) Add an option to disable the console output (it might be affecting 
> frame rate)
> d) Add an option to disable the vsync that is limiting the frame time to 
> multiples of 1/60th second (your code might be blocking while waiting 
> for vsync?) and anyway it's useful for seeing how fast your code really is

Sounds sensible to me...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.