realbasic-games
[Top] [All Lists]

Re: Ticks and VBL

To: realbasic-games at lists dot realsoftware dot com
Subject: Re: Ticks and VBL
From: "Ken Gish" <kwgnlw at hotmail dot com>
Date: Fri, 22 Jul 2005 08:05:13 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
Nick,

I am using a SuperSpriteSurface (not a Canvas). I am still [a little] uneasy about relying on OpenGL (mainly because I don't know anything about it; that will change) but it looks like the support for OpenGL (particularly double-buffering) on the Mac is great.

If anyone out there is using SSS, make sure you use the following lines of code to turn on the VBL sync (it might not be on by default):

Dim short as MemoryBlock
short = new MemoryBlock(4)
short.Long(0)=1
call AGLSetInteger(aglGetCurrentContext(),AGL_SWAP_INTERVAL,short)

John Balestrieri was kind enough to provide me with those four lines (Thanks John! :-)

I believe John is working on a Windows version of SSS. I plan to investigate OpenGL on Windows sometime soon. Does anyone know where I might find information (besides www.opengl.org) about which versions of OpenGL were installed by default for different versions of Windows? The OpenGL web site says "OpenGL v1.1 ships as part of Win32." It might be useful to know some general information about potential problems with specific graphics cards.

Ken


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>