POV-Ray : Newsgroups : povray.off-topic : Speed comparison between C# and C++ : Re: Speed comparison between C# and C++ Server Time
1 Oct 2024 07:18:35 EDT (-0400)
  Re: Speed comparison between C# and C++  
From: Chambers
Date: 17 Apr 2008 10:53:40
Message: <48076474@news.povray.org>
scott wrote:
>> Now, I'm thinking I'm seriously doing something wrong here with the 
>> C++ version, but I can't figure it out.  And without a profiler, I 
>> can't spot bottlenecks in my executable.
> 
> 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

That's REALLY strange, on my PC the CPU % goes up to 50 (ie, one entire 
core)!

> What I would add to your program to debug further:
> 
> a) Add an option to disable rendering each frame (ie just do the physics)

Huh, I even tried that on my machine, and it didn't change anything, so 
I didn't think it was the graphics... but, I'll try using OpenGL 
directly, rather than the ClanLib sprite API.

-- 
...Ben Chambers
www.pacificwebguy.com


Post a reply to this message

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