FPS Counter - Forum
Counter-Strike Federation Welcome , Leecher | RSS | Saturday, 10 December 16
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » DevCen » Autoplay Media Studio » Code Snippets/Tutorials » FPS Counter
FPS Counter
Grade: Commander DavidJrDate: Saturday, 16 May 15, 1:02 PM | Message # 1
Commander
Clan: Executive
Experience: 2256
Status: Offline
How to Install
1. Buat project baru
2. Pilih Menu > Global Function
3. Klik kanan pada editor lalu pilih Advance > Import
4. Cari FPS_Counter.lua lalu klik open

How to Use
1. Buat sebuah object paragraph, secara default namanya adalah "Paragraph1"
2. Double click page, lalu gulir ke tab Show
3. Pada tab Show isi script timer. Page.StartTimer(10)
4. Pindah ke Tab Timer lalu isikan script berikut
Code
FPS_Update(100); // Limit FPS di 100

Paragraph.SetText("Paragraph1", "FPS: " .. FPS_Retrieve());


Attachments: FPS_Counter.rar(1Kb) · 9820436.jpg(69Kb)


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Sergeant Nouris_Hamada_103Date: Saturday, 16 May 15, 7:40 PM | Message # 2
Sergeant
Clan: Member
Experience: 50
Status: Offline
Yey Pertamax biggrin
izin nyoba


Regards,

By Nouriez Hamada BC

 
Grade: Commander DavidJrDate: Sunday, 17 May 15, 7:03 PM | Message # 3
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Nouris_Hamada_103 ()
Yey Pertamax biggrinizin nyoba
happy


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Trainee bluelilsoxDate: Friday, 03 July 15, 9:28 PM | Message # 4
Trainee
Clan: Member
Experience: 1
Status: Offline
There is a few problems with this, for one AMS is Window Form based, for two your using the timer page a little wrong I see so many posts like this.

On Timer is ID based so start your timer and then check for timer 

Code
--On Show

--Page.StartTimer(TIME_IN_MILLSEC, TIMER_ID);
Page.StartTimer(10, 15);

--On Timer  

if e_ID == 15 then
    -- Do Action
end


This lets you use many timers at once, don't go crazy as AMS been single threaded but that is how you would do it.


Wee bit of a programmer
 
Grade: Commander DavidJrDate: Saturday, 04 July 15, 9:33 AM | Message # 5
Commander
Clan: Executive
Experience: 2256
Status: Offline
bluelilsox, thank you for the correction wink

posted via BlackBerry

Personal Site | CSF Website
 
Forum » DevCen » Autoplay Media Studio » Code Snippets/Tutorials » FPS Counter
Page 1 of 11
Search:

Mirum
sample map