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 / SetSpritePriority limit?

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 23rd Aug 2008 20:17
Is there is limit when using SetSpritePriority?

I used a value of 900 for some sprites and suddenly the refresh turned slow and sloppy.

I changed 900 to 50 and everything move ssmooth again.

The docs do not specifiy any limit.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 23rd Aug 2008 22:24
Quote: "The docs do not specifiy any limit."


I would assume that since the argument is an int it takes the range of int values. Whether negative numbers would work or not I don't know. It would be interesting to try to set them to a very high number and see if it affects the speed proportionately.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 24th Aug 2008 06:00
That would suggest that the drawing function goes through every number, up until the highest you've specified, and checks to see if a sprite exists and needs to be drawn.


My site, for various stuff that I make.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 24th Aug 2008 11:16
putting a priority of 900 affects the speed. that is confirmed.

Login to post a reply

Server time is: 2024-09-30 05:20:32
Your offset time is: 2024-09-30 05:20:32