Вниз
Скачать: CL | DM;

Fps   Найти похожие ветки 

 
D@rk   (2006-02-06 22:38) [0]

Использую OpenGL...
Подскажите пожалуйста как посчитать Fps...


 
grouzd[E]v ©   (2006-02-06 23:05) [1]

var
count_new, count_last, count_sec, fps : integer;

procedure Render;
count_new := GetTickCount;

fps := fps + 1;
if (count_new - count_sec) >= 1000 then
 begin
   count_sec := count_sec + 1000;
   fps_string := "fps: "+inttostr(fps);
   fps := 0;
 end;
global_count := count_new - count_last;

//рисуем сцену
//получаем fps - в строке fps_string

count_last := count_new;
end;

---
... we are walking on a thin line and you better avoid the risk ...



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.031 c
15-1163052832
Layner
2006-11-09 09:13
2006.11.26
Привязка к MAC адресу, версии BOIS программы... за и против


6-1147114742
Zhekacoder
2006-05-08 22:59
2006.11.26
передача файлов по сети


4-1152920860
Ayvan
2006-07-15 03:47
2006.11.26
enabled or not?


4-1152879465
Acidlex
2006-07-14 16:17
2006.11.26
Эмуляция нажатия клавиш в чужом окне


15-1162786837
DelphiN!
2006-11-06 07:20
2006.11.26
Просмотр лог файла программы FTP.EXE




   Наверх