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.

Dark GDK / Determining CPU speed?

Author
Message
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 23rd Nov 2007 23:46
I recently migrated to Dark GDK from the Irrlicht and Ogre graphic engines.

Anyways, for the first part of my game I need a "compatibility checker"- eg. a program that checks CPU speed, RAM etc.

When I try to create a window and try to display the CPU speed (through a registry key), the program won't compile. I have checked and made sure all neccessary headers are included.

So here is my question: Is there a Dark Basic function that will retrieve your CPU speed, total Ram etc?

Thanks

dbPrint ( "Sig" );
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 24th Nov 2007 09:58
GDK doesn't contain a function to get the CPU speed. I'd recommend checking a site like gamedev.net or thecodeproject.com to see examples of how this can be done. Alternatively post the program you have made and someone might be able to help out with why it isn't compiling.

To determine the total system memory use this function int dbSystemTMEMAvailable ( void ).
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 24th Nov 2007 14:11
I found a way to get around it. I made a file called prerequisites.cpp and made it run before any other file, calculated memory, CPU speed etc and then included main.cpp.

Thx for you help though.

dbPrint ( "Sig" );

Login to post a reply

Server time is: 2024-11-16 20:24:40
Your offset time is: 2024-11-16 20:24:40