Вниз
Скачать: 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.025 c
2-1163098906
~Aid~
2006-11-09 22:01
2006.11.26
Application.ProcessMessages


8-1144966315
Alpine
2006-04-14 02:11
2006.11.26
Как очистить IMAGE ?


15-1162763416
albanier
2006-11-06 00:50
2006.11.26
QIP


15-1161966402
Calibr
2006-10-27 20:26
2006.11.26
Время загрузки компа?


6-1150190015
Tempora
2006-06-13 13:13
2006.11.26
Проблема с Indy. Помогите найти ошибку.




   Наверх