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.

Newcomers DBPro Corner / sprites using lots of fps

Author
Message
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 3rd Feb 2006 04:23
i know that theres another post about almost the same subject but it doesn't really answer my question i am using sprites for my inventory code and before i put in the sprites my game ran at 64-65 fps and after it ran at 25 fps and im only using ten sprites is there any way to get a better fps while using sprites in a 3d game ive heard that you can get better fps out of texturing a plane and binding it to the screen is this true and if so how would i bind the object to the screen

Tywald
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sweden
Posted: 3rd Feb 2006 11:02
Jerok:
Try disabling the "backsave" on your sprites using the "SET SPRITE" command..
SET SPRITE x, 0, 1
It should speed things up.
As for the 3D plain object question then use the "LOCK OBJECT ON" command.
- Tywald
crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 3rd Feb 2006 11:18
Sounds more like your calling the sprites to display every cycle. Sprites arent like bitmap's and pasting, they stay onscreen.

The only time you need to call a sprite again is to alter it in some way, like moving hiding or something.



Why are the forgotten always remembered? But no-one remembers me?!
Yskonyn
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: Netherlands
Posted: 3rd Feb 2006 12:23
crighton, on another note (sorry a bit o/t) calling a sprite to show every cycle will result in a memory drain, right?

Yskonyn -
"It's better to wish down here you were up, then to wish up there you were down."
"The ONLY time you have too much fuel on board is when you are on fire."
crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 3rd Feb 2006 16:00
not really sure on that,(havent tested it) but in theory the more things you try and accomplish in a cycle the slower its going to be.
So if you call a sprite to a specific location, then you dont need to call it again untill that sprite needs to be changed in some way.


One day i might test some of these things.



Why are the forgotten always remembered? But no-one remembers me?!
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 3rd Feb 2006 18:18
thank you for your help i found out my problem wasn't the sprites but i was loading the image files every loop using up lots of fps

crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 4th Feb 2006 12:39
ah yeah, that'll do it.

Why are the forgotten always remembered? But no-one remembers me?!

Login to post a reply

Server time is: 2024-11-27 05:53:41
Your offset time is: 2024-11-27 05:53:41