Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vertical retrace



From: "Zack Morris" <email@hidden>
To: <email@hidden>
Sent: Thursday, September 12, 2002 11:20 PM
Subject: Re: vertical retrace
> Hi, this isn't exactly related to VBLs, but it IS related to flicker.
> We are having a problem where our games flicker. It only seems to happen
on
> Quartz Extreme machines. We think this is because we are unable to get the
> base address of the main device (since Quartz Extreme takes over the whole
> monitor with OpenGL). Sometimes we like to blit directly to VRAM to avoid
> the VBL pauses associatd with QDFlushPortBuffer(). Now our blits are
> getting skipped and only the flushing "shows". Are we right about Quartz
> Extreme and no longer being able to blit to VRAM?


Hey Zack -

Two things. First, don't do that. ;)

No really. Blitting to VRAM has been a no-no for a LONG time now. Use
QuickDraw for your blits if you need to move a QD surface.

Otherwise, move to OpenGL -- it's the fast path at this point.

Second, the 8-bit conversion thing actually can be solved via OpenGL as
well. Set up a texture for your 8-bit data (likely limited to 2048 square,
fyi) as a palettized texture (assuming all boards support that
effectively...), and the hardware will take care of the up-bit on the fly.

d
_______________________________________________
mac-games-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-games-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.