Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.11.26;
Скачать: 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 вся ветка

Текущий архив: 2006.11.26;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.065 c
15-1163092863
TUser
2006-11-09 20:21
2006.11.26
Размер djvu


15-1162961226
vajo
2006-11-08 07:47
2006.11.26
В Японии создан 512-ядерный процессор


2-1162719516
Max_2006
2006-11-05 12:38
2006.11.26
Работа с PChar средствами Windows (API)


15-1163084803
Slaga
2006-11-09 18:06
2006.11.26
Передать файл с сервера на клиент и наоборот


2-1162809671
dbnz3
2006-11-06 13:41
2006.11.26
вопрос