Вниз
Скачать: 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.027 c
3-1158742757
tor84
2006-09-20 12:59
2006.11.26
Переместить данные из dbf(866) в Access


3-1159182615
emik
2006-09-25 15:10
2006.11.26
Client/Server


2-1163068156
pkm
2006-11-09 13:29
2006.11.26
Работа с мемо.


3-1159010897
Mate
2006-09-23 15:28
2006.11.26
Как сохранить (или конвертировать) базу с Unicod ом в формате Acc


15-1162870132
Slider007
2006-11-07 06:28
2006.11.26
С днем рождения ! 4 ноября




   Наверх