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 Professional Discussion / FPS problems with Dark BASIC Pro compiled applications

Author
Message
C0wbox
19
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 11th Dec 2008 18:55 Edited at: 11th Dec 2008 19:16
Is this my fault, my computer's fault or Dark BASIC Pro's fault? :

All my applications since Vision, which died due to Timer Based Movement problems, have all had a sync rate of 100 to compensate for this trouble with fluctuating processing speeds that was messing the timer based movement up and all have the display mode vsync set to 0.

So now I run all my applications fine, and they play consistently, however there is one slight technical hitch... - I can get 1 of 2 FPSs with them:
When running just explorer and the application running, I get a maximum of 64 FPS, which is not what I should get with a sync rate of 100. (One would obviously expect around 100 FPS.) And I've tested this from very high polygon counts (well up in the 10s of thousands) to very low (around 2000) and I can only get a maximum of 64 FPS.

In this circumstance, I've tried doubling the sync rate to 200, and there is no change; it simply won't go above 64.

Now, here comes the really confusing part:
When I have something like MSN open in the foreground (doesn't count if it's in the background) with it's Flash advert at the bottom, my FPS will go up to its maximum. (Which on sync rate of 100 is around 111 FPS.)
Close/minimize MSN and the FPS will go back to 64 when you rerun the application.

The same applies for Youtube videos and music videos being played through Winamp (haven't tried Windows Media Player), with any of these 3 running while playing my game, the FPS will do exactly what I want.

With everything closed, it only reaches 64...

What's going on???

zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 11th Dec 2008 19:00 Edited at: 11th Dec 2008 19:14
This is strange... I read something like this in a thread a few months ago (not sure if it was your thread), and I never found out the answer. Hopefully someone will have a thought about what is going on.

EDIT
This doesn't answer your problem, but at least it confirm that other people experience higher FPS in apps when someting that has a flash plugin is executed.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115790904

~Zenassem
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Dec 2008 19:14
How are you reading the frame rate? Using fraps or something? Sometimes these apps limit the frame rate themselves.

3700+ Athlon 64 - Geforce 7600 GS - 2GbDDR2 RAM - 40Gb Hdd (In this pc) - Windows Vista Ultimate (x86)
C0wbox
19
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 11th Dec 2008 19:18 Edited at: 11th Dec 2008 19:20
@ zenassem
Well I'm GLaD other people do get this problem; I was worried it was something to do with my PC.

All I need now is a solution.
xD

@ Mobiius
I'm just using the get screen fps command from Dark BASIC Pro.


As well as the FPS drop on the counter, I can conciously see a speed drop when running my applications as the characters in games run around quicker when I've got something with Flash open in the background, but without it, the games seem slow or laggy.
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Dec 2008 19:21
I'm not sure then. Perhaps you need a driver update, or a registry clean or something.

3700+ Athlon 64 - Geforce 7600 GS - 2GbDDR2 RAM - 40Gb Hdd (In this pc) - Windows Vista Ultimate (x86)
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 11th Dec 2008 19:24
And I found another forum that tlaks about the same thing. Increasing FPS when flash plugin is running. So there has to be something to it.
http://forums.soldat.pl/index.php?topic=27758.0

Now if we can only figure out what is capping you at 60 FPS.


What video card do you have?

~Zenassem
C0wbox
19
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 11th Dec 2008 19:24 Edited at: 11th Dec 2008 19:34
@ Mobiius
Well that would be a reasonable assumption, however, this problem has happened for as long as I can remember, and I updated my drivers last month.

How would one perform a registry clean? (Other than formatting of course.)

@ zenassem
My specs:
Processor:
AMD Athlon(tm) 64 Processor 3000+, MMX, 3DNow, ~1.8GHz

Memory:
2048MB DDR RAM

Hard Drive:
C: 24.4gb, F: 124gb, G: 74.5gb (Sata 2)

Video Card:
NVIDIA GeForce 7600 GT

Monitor:
hp Flat/widescreen plug and play monitor (1440x900)

Sound Card:
Realtek AC97 Audio

Operating System:
Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp.080413-2111)

Motherboard:
ASUS something-or-other

:S
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 11th Dec 2008 20:09
Did you try turning off vsync in the card settings (not in dbpro).

~Zenassem
C0wbox
19
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 11th Dec 2008 20:23
@ zenassem
I have it off by default in the nVidia control panel anyway. (Mainly because I have no idea what good it does, as all it seems to do is lower your FPS in professional applications.)
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th Dec 2008 10:33
The Windows Registry IMHO is the worst design for an Operating system.. EVER ... I doubt its your problem - but I thought it a good soapbox for the registry comment... LOL

That flash thing is odd... the question though to me becomes: If flash gets my framerates where I'd ultimately like them... what does flash player do that DBPro doesnt?

--Jason

C0wbox
19
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 12th Dec 2008 11:15
@ jason p sage
Quote: "what does flash player do that DBPro doesnt?"

Yeh, that's what I was wondering. There needs to be some kind of DBP plugin to activate Flash in the background, just for the purposes of speed.
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th Dec 2008 11:34
LOL - the funny thing is that as sad as that sounds... it would likely WORK!!!! based on all I've read here LOL.... Maybe spawn a Explorer web page to a local flash file that's part of your game media... minimized... just to get the oomph LOL
--Jason

C0wbox
19
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 12th Dec 2008 18:45
@ jason p sage
Lol, it's an idea, but I'd like someone with knowledge on this to answer it and explain what I can actually do about it. xD

Login to post a reply

Server time is: 2025-06-27 05:46:06
Your offset time is: 2025-06-27 05:46:06