Вниз
Скачать: 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
2-1162984685
kolius
2006-11-08 14:18
2006.11.26
Как избавить от мелькания TMemo?


15-1162823059
Виктор1985
2006-11-06 17:24
2006.11.26
Аналог RSDN@Home для дельфимастера?


2-1163014596
Greenchel
2006-11-08 22:36
2006.11.26
Пробелы в TEdit


15-1162858540
ocbka
2006-11-07 03:15
2006.11.26
Нужен HELP!!!


15-1162658830
ProgRAMmer Dimonych
2006-11-04 19:47
2006.11.26
Создатели веб-сайтов - хуже спамеров?




   Наверх