08-06-2015 07:59 AM
HI,
I'm trying to make a simple VI that meassures and displays a PCs frame rate. I am doing this as an enticement to my grandson who is a gamer.
I want to show him the power and ease of LabView. I am a novice and have just completed LV core 1 &2.
I assume that I need to grab a parameter from my pc etc.
Thanks for any help you can give.
08-06-2015 08:33 AM
08-06-2015 10:12 AM
In addition to Nathan's answer you will find that the framerate in most modern games is constantly changing depending on how hard the graphics engine is working at any given moment. Inside a cave with minimal objects you may have 100FPS, step outside and start rendering to the virtual horizon while simulating a rainstorm and Poof!, you're down to 25FPS.
You will have to query the game engine to get the current rate. There's usually an option to display the FPS in most games. I'm not sure how an external program would query that value while the game is playing.
Instead, how about a nice game of chess??? : https://lavag.org/topic/18557-chess-game-chess-engine-100-labview/
08-06-2015 11:16 AM
There are lots of applications that hook into DirectX to get the framerate while a game is running (e.g. FRAPS). Perhaps you can find out how to do it in another language and see how you can apply that to LabVIEW (e.g. .NET calls) or perhaps you can talk to another program which is calculating/displaying the FPS.