forum.boolean.name

forum.boolean.name (http://forum.boolean.name/index.php)
-   BlitzMax (http://forum.boolean.name/forumdisplay.php?f=104)
-   -   Vsync (http://forum.boolean.name/showthread.php?t=7484)

Ende 22.12.2008 04:13

Vsync
 
Люди добрые, подскажите плз как Vsync включить??

Taugeshtu 22.12.2008 06:04

Ответ: Vsync
 
Выдрано из хелпа:
Function Flip( sync=-1 )

Flip swap the front and back buffers of the current graphics objects.
If sync is 0, then the flip occurs as soon as possible. If sync is 1, then the flip occurs on the next vertical blank.

If sync is -1 and the current graphics object was created with the Graphics command, then flips will occur at the graphics object's refresh rate regardless of whether or not the graphics hardware supports such a refresh rate.

If sync is -1 and the current graphics object was NOT created with the Graphics command, then the flip will occur on the next vertical blank.

Вольный перевод:
sync = -1 работает так: Если инициализирована графика командой Graphics, то синхронизация будет производиться с частотой, указанной при ините графики, если же инициализированна как-то иначе - то на следующем проходе луча

sync = 0 синхронит так часто, как возможно (всинк выключен, если проще)

sync = 1 включает всинк

Ответ:

Делай
Код:

...
Flip 1
...


SBJoker 22.12.2008 10:54

Ответ: Vsync
 
Цитата:

Сообщение от Ize'g0re (Сообщение 92555)
...синхронит так часто, как возможно...

Я бы сказал что вообще не синхронизирует, а выводит картинку в момент выполнения этой команды.


Часовой пояс GMT +4, время: 10:09.

vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot