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 / Performance Issues

Author
Message
Lord Raoul
22
Years of Service
User Offline
Joined: 26th Oct 2002
Location:
Posted: 27th Aug 2005 14:31
This is a good one, basically I am working on an FPS using Sparkys collison DLL. It is my first game but it is going well. However, when I ran the game on my PC I got a frame rate of 27 when it was capped at 30. Anyone else I sent it to (all my freinds have better PC's than me) got the 30 frames per second it was set at.

I thought, okay all I have to do is design it like it works properly and it will work for most people. Then I get my new laptop, which is a LOT more powerful than mine or any of my freinds PC's. It can handle my 'real' games perfectly, running at full fps at full graphics on most of them. Yet it can only run my game at 21 fps, worse even than my PC. I am running it from the same exe file that I gave my freinds as I have not yet installed darkBASIC on my laptop.

Does anyone know why this might happen?
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 27th Aug 2005 18:53
What happens if you set it to sync rate 0?

If it runs super fast, then you may have to set it to sync rate 0, then use timers to control the speed of the game.


I'm going to eat you!
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 28th Aug 2005 10:20 Edited at: 28th Aug 2005 10:21
Lord Raoul,

Yes, some of the programs I have written have ran faster with a 0 sync rate. An example of mine is a paint program I experimented making, that I recieved a max fps of 47 with the sync rate set to 60. However, when I set the sync rate to 0, only then did the fps go up to 60. Weird? Yes.


+NanoBrain+
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 29th Aug 2005 11:47 Edited at: 29th Aug 2005 11:47
People often forget that the Sync command itself slows a program down.

You would normally have just one Sync in a program, but sometimes it isn't possible and any extra Sync's you put in will have a performance hit on the FPS rate. (I'm not suggesting that's what you have done though).

Also, many low-cost laptops have slow GFX cards (SiS integral jobbies) and slow LCD screens and you normally have to pay more to get a decent ATI or nVidia card in them. Both these aspects can make your games run slower on a laptop - despite being a higher spec CPU.

My laptop is a 2.6Gig P4 with 512MB of DDR memory, but it has an SiS GFX card and most 3D games running on it are akin to wading through treacle!

TDK_Man

blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 29th Aug 2005 15:11
Also, sync rate doesn't work quite right (for whatever reason), so it really, really would be best to sync rate 0 and then use timers to control the speed of your program.

That said, who can tell the difference between 27 and 30 FPS without a counter anyway? ;P

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!
Lord Raoul
22
Years of Service
User Offline
Joined: 26th Oct 2002
Location:
Posted: 29th Aug 2005 15:34
hi guys. Thanks for the advice. I doubt my laptops performance is an issue, the graphics card is an ATI radeon X600 (not sure about the number, its at least that) with 256mb of graphics card RAM, a 3.2Ghz P4 with 2mb L2 cache and 1024 mb of RAM. I am gonna install darkBASIC and play about with sync rate 0 today. Do you know where I could get any advice about timers because I haven't really used them before?

Thanks again.
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 1st Sep 2005 02:32
I'm not sure if this is what the "Pros" are talking about but I'm guessing, this:



Just a guess so I'm not sure if it is what all the others mean, and I know that it will only sync once. I just didn't fell like making it detailed in case I'm wrong.

------------------------
I'm looking for a new free website host. Email me if you know of a good one without ads! [email protected]

Login to post a reply

Server time is: 2025-05-22 09:19:04
Your offset time is: 2025-05-22 09:19:04