Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Low framerate - can't find why!

Author
Message
Unkelben
19
Years of Service
User Offline
Joined: 2nd Feb 2004
Location: Montréal, Canada
Posted: 19th Jul 2005 06:50
Hello,

My main loop is : an animation which is rendered to an image (with dbPlayAnimationToImage) an then pasted to the screen plus a small sprite at the position of the mouse pointer. Yet, I get an average of 18-20 frames second. There is no 3d, no other sprites, nothing funky going on.

I have profiled a bit and found out around 95% of the time was taken by dbSync() alone! Why? Is it wainting for the refresh? I sure hope my GeForce6200 can refresh more than 20 times per second!

Thing is, it used to go up to around 50 frames per second, but it changed at some point, but I didn't notice when.

Any ideas?

Jonathan
Unkelben
19
Years of Service
User Offline
Joined: 2nd Feb 2004
Location: Montréal, Canada
Posted: 19th Jul 2005 07:47
Ok, I found one reason :

I have a big pile of sprites hidden. If I delete them, the framerate goes up. Isn't that strange though?

Jonathan
matt rochon
19
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 20th Jul 2005 10:18
if you dont delete them during runtime they accumulate and cause windows to page more of your program
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 16:17
Because, whilst hidden, they are still in the rendering system...

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
Unkelben
19
Years of Service
User Offline
Joined: 2nd Feb 2004
Location: Montréal, Canada
Posted: 22nd Jul 2005 00:10
I see! Good to know!

Jonathan

Login to post a reply

Server time is: 2023-02-02 15:09:11
Your offset time is: 2023-02-02 15:09:11