Вниз
Скачать: 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
15-1162586445
ProgRAMmer Dimonych
2006-11-03 23:40
2006.11.26
Наверное, уже неоднократно этот вопрос задавали, но...


2-1163170682
³²³
2006-11-10 17:58
2006.11.26
TTimer


2-1162797963
dbnz3
2006-11-06 10:26
2006.11.26
вопрос


2-1162984685
kolius
2006-11-08 14:18
2006.11.26
Как избавить от мелькания TMemo?


3-1159018613
PeterBuild
2006-09-23 17:36
2006.11.26
Индекс по калькулируему полю




   Наверх