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.

DarkBASIC Discussion / high fps, slow speed

Author
Message
Pricey
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 20th Jan 2004 21:17
i am making a program based mainly on text

i get a high framerate (99) but the text is drawn REALLY slow. the first line appears then the box around it, then the next line, then the box and this goes on and then it all starts again! it is really annoying and it only started happening today! i changed a few lines around and then this started happening! ahhhhhhhhh! fud.

does anyone know why this would happen?

http://www.johnsgames.tk
Current Project: MYSTERIOUS WOODS
VishalC
21
Years of Service
User Offline
Joined: 14th Jan 2004
Location:
Posted: 20th Jan 2004 21:31
some code would be good. i can't help you unless i can see whats wrong. y don't you change those lines back to how they were?

If it wasn't for the last minute, nothing would get done!
Pricey
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 20th Jan 2004 22:03
i don't know what i did.

i will try and construct some sample code because i don't want to give away the contents of the game just yet.

http://www.johnsgames.tk
Current Project: MYSTERIOUS WOODS
Travis
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: West Aust.
Posted: 21st Jan 2004 05:44
i would suggest that u arnt using your sync command properly ur refreshing the screen while u display the text ect u only need to refresh it after all the text is displayed and the boxes are drawn if u want to see the text come up one bit at a time then ur game will run extremely slow
Pricey
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 21st Jan 2004 18:28
i don't think i'm doing that

http://www.johnsgames.tk
Current Project: MYSTERIOUS WOODS
Travis
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: West Aust.
Posted: 22nd Jan 2004 09:47
well i tryd guessing, unless u post some code no one can really help
unless they guess which ppl think is a waste of there time ...thats why noones answering
DBellis82
21
Years of Service
User Offline
Joined: 19th Jan 2004
Location:
Posted: 22nd Jan 2004 17:57
sounds likely that he aint using sync properly and btw DB Classic text Functions have pretty much allways been slow.

or you are some how reporting your fps code is reporting your fps wrong just a thought as if u include 2 fps checks it doubbles ur frame rate numbers but not the app it self i.e. try this

sync on
sync rate 0

do
print screen fps()
print screen fps()
sync
loop

i think thats correct i havnt used DB Classic since DBP 1st got released

Codeing Makes Your Mrs hate You
STB Devolper - [url]www.eclipsedevelopment.co.uk[/url]
Pricey
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 22nd Jan 2004 22:07
i worked it out

btw here is a joke:

did u hear about the constipated mathamatician?

he worked it out with a pencil

ohhhhhhhhh, fud!


Login to post a reply

Server time is: 2025-05-22 16:21:23
Your offset time is: 2025-05-22 16:21:23