Вниз
Скачать: 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.026 c
6-1152275835
olevacho_
2006-07-07 16:37
2006.11.26
Переключение проксей в IE


3-1159009804
alexandrine
2006-09-23 15:10
2006.11.26
Как посадить базу Paradox7 на сетку?


15-1162997858
Prohodil Mimo
2006-11-08 17:57
2006.11.26
Любителям гольфа


2-1162796559
immmi
2006-11-06 10:02
2006.11.26
Очистить record


15-1162848112
ProgRAMmer Dimonych
2006-11-07 00:21
2006.11.26
С помощью какой книги Вы научились работать с сетями из Delphi?




   Наверх