Vertical blanking

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GIDO.

How can I detect the vertical blanking (or a specified line if it's possible ) ?

Thank you
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Get a C64 :)

What do you need it for ?? Desktop-Application or DirectX Fullscreen ??

Atm i dont think its possible in Win32, but maybe its possible
with DirectX now. Normally, all the retrace stuff is managed
by Windows and DirectX itself, so you cant access it.

Maybe i´m wrong and somebody has a solution under Win32 for this.
Maybe i´m totally wrong and you work with Linux or AmigaOS... :)

cya,
...Danilo


(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

It's possible but it's not directly available in PureBasic. As always, you can do it via API, Danilo had some example to use DirectDraw7 with COM interface. Involved commands are:

- GetScanLine()
- GetVerticalBlankStatus()



Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GIDO.

Thanks for your answer.
yes, I used before Amiga to check very easily the VBL
and the scanline .
Now I must work with windows and try to do the same .
I work with a openedwindowscreen and a video window ( external video with capture board or Mpeg file )on the desktop.
My graphicboard ( ATI ) output a video PAL 50Hz . For my application, I must refresh my screen in relation of the VBL ; I checked it with hardware ( I extract the vertical synchro of the video output PAL to synchronise my application ) and it runs well . If I can do that with software, It will be better .
Fred speaks about GetScanLine() or GetVerticalBlankStatus() !
where can I have more informations about these commands and how to use it with PB ?
Thank in advance
Marcus
User
User
Posts: 20
Joined: Thu May 08, 2003 9:35 pm

Post by Marcus »

SOS FRED ,
Pitié on le veut ce Wait VBL :cry:
ou explique nous comment utiliser
- GetScanLine()
- GetVerticalBlankStatus()

Merci
@+
Marcus
Fred
Administrator
Administrator
Posts: 18393
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Je vais le rajouter, pas d'inquietude.
Marcus
User
User
Posts: 20
Joined: Thu May 08, 2003 9:35 pm

Post by Marcus »

:D
Merci
@+
Marcus
Post Reply