FPS

For questions about using Classic.

Post » Tue Jun 14, 2011 9:17 am

Hey, is there any way I can show FPS on the layout? If yes, how? Thanks for attention, waiting for answers.
B
11
S
3
G
6
Posts: 193
Reputation: 4,229

Post » Tue Jun 14, 2011 11:18 am

Try this : you need a text object, and a global variable called 'tickssofar'

+ System: Always (every tick)
-> System: Add 1 to global variable 'tickssofar'

+ System: Every 1000 milliseconds
-> Textfps: Set text to "FPS: "& global('tickssofar')
-> System: Set global variable 'tickssofar' to 0

This is not my creation ( i can't remember who posted, so can't credit them)

(should be on newts snippet widget)
B
19
S
6
G
7
Posts: 1,203
Reputation: 7,294


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests