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 / Apps skip every second

Author
Message
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 27th Jan 2009 00:26
I did a search on this problem already but couldnt find any, i might not have used the right keywords...

My problem is when following the tutorials and executing them the application skips every second as if the framerate just drops, i believe that it has something to do with the sync command.

Besides this everything works like a charm..
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 27th Jan 2009 06:40
More explanation please Luc13.


Whatever...
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 27th Jan 2009 08:45
well at an interval of approximately one second the program stops for milliseconds and starts again, but i dont want it to stop like that.

could it be my video card that is making it stop like that???
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 27th Jan 2009 10:52
Could you perhaps post the code that yields this issue?
It would make helping you out a tad easier

"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 27th Jan 2009 12:42
this is straight out of the downloased tutorials project file, i have not edited it

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Jan 2009 16:08
For me, the stars scroll perfectly smoothly.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jan 2009 16:17
If BatVink say it runs ok, then I think it must be something on your system that runs in the background that needs its share of processor time.

Dark Physics makes any hot drink go cold.
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 27th Jan 2009 23:33
ok thanyou for clarifying that with me.

could it be that im running vista and dont have much support for directx 8.1
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 28th Jan 2009 17:40
Hm, you need DX 9.0 I think.
Also, the compiled executables simply won't run without it, so if that was the problem you would have known

"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 28th Jan 2009 18:02 Edited at: 28th Jan 2009 18:05
this (and other code, including time-based movement) lags for me as well. same symptom you mentioned. i think it's to do with my widescreen lcd monitor vs dbpro. if i don't add the vsync flag, i get the choppiness, even in my ws desktop resolution (first i thought it was a "running 4:3 in w/s mode" issue).

to "fix" it, try turning VSync on. ie, add this to the top of the code:

set display mode 800,600,32,1

when i add that, the stars scroll smoothly. but, it will lock your frame rate to that of you monitor's refresh rate (60 for me). so, adjust the speed factor to your liking with the following line from the code:

speedfactor# = 0.75

let me know if that works for you, and whether or not you're using a widescreen monitor as well? this way we can have a culprit to blame some of our woes on i'm also on vista (see sig for specs)

Virtual Nomad @ California, USA
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Jan 2009 18:20 Edited at: 28th Jan 2009 18:30
That's useful information, Virtual Nomad. I have a couple of apps that "jump", but only to the extent that you have to be aware of it to notice it.

I might just try this and see what happens.

[EDIT] Didn't work for my scenario.

lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 28th Jan 2009 23:43
my app jumping stands out heaps.

The VSync didnt work for me it wouldnt recognise the extra parameter, could it be that im using the trial version of the software..

Full version on its way...

Login to post a reply

Server time is: 2024-11-24 14:48:42
Your offset time is: 2024-11-24 14:48:42