realbasic-games
[Top] [All Lists]

Re: more brain picking...

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: more brain picking...
From: Mike Woodworth <mike at divergentmedia dot com>
Date: Thu, 1 Jun 2006 00:13:52 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <2FF996BD-6E7B-4E03-B63A-A2C5959C1FB3 at divergentmedia dot com> <bc06d452b7a7455656a09ce3e36a1657 at fireyesoftware dot com>


On Jun 1, 2006, at 12:10 AM, Asher Dunn wrote:


On May 31, 2006, at 11:15 PM, Mike Woodworth wrote:

other questions: i just realized my video frame is backwards, is it possible i've attached the texture backwards? or am i looking at it from the behind?

OpenGL coordinates are bottom-left based, so you have to flip the Y axis from what you'd think in RB.

hmm, my frame is backward left to right.


eventually it crashes by spawning a few thousand threads all waiting on mpqueues. anyone seen this problem with opengl? seems to only happen if i keep swapping out the texture with glTexSubImage2D... if i set the texture once then it'll run for hours. do i need to dispose of the old one before i add the new one?

Hmm, shouldn't have to, unless you're allocating new memory every time. Try using glTexImage2D instead maybe, if you're changing the entire texture?

figured that one out... apparently 30mb a frame is too much to leak :) and of course it was in the video stuff i know cold - too quick to blame the code i dont really understand :)

mike
--
Mike Woodworth
mike at divergentmedia dot com


_______________________________________________
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>