<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>When is it safe to delete a texture buffer?</title>
<description> Okay, so I&amp;#039;m running into an issue with the development of one of my libraries and figured I may as wella sk ehre in case anyone else has the same question.

So I have a memalign&amp;#039;ed buffer with pretty little RGBA8 format (or other) texture data. I create a GXTexObj and load the texture data into it with GX_InitTexObj. Next I load the texture object with GX_LoadTexObj and draw the texture to a quad with the GX_Begin/GX_End functions.

Now, all is well and good but as what point can I safely free the originally memalign&amp;#039;ed buffer and not cause a rendering error somewhere in the display pipeline? The main thing I&amp;#039;m trying to avoid is for the rendering engine to not try to display a texture buffer which has been freed somewhere prior.

So, any thoughts?</description><link>http://forum.wiibrew.org/read.php?11,9676,9676#msg-9676</link><lastBuildDate>Thu, 05 Mar 2026 09:13:37 +0100</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9676,9877#msg-9877</guid>
<title>Re: When is it safe to delete a texture buffer?</title><link>http://forum.wiibrew.org/read.php?11,9676,9877#msg-9877</link><description><![CDATA[ DevkitPro CVS is no longer updated. DevkitPro SVN is now used.]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Sun, 15 Feb 2009 18:51:19 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9676,9802#msg-9802</guid>
<title>Re: When is it safe to delete a texture buffer?</title><link>http://forum.wiibrew.org/read.php?11,9676,9802#msg-9802</link><description><![CDATA[ Hi Armin,<br /><br />DevKitPro have a CVS repository over at SourceForge.net with the GX source. Unfortunately, it&#039;s a bit of a mess to wade through. I <i>think</i> the way that the texture rendering works is that it&#039;s all pointers until GX_DrawDone(), and even then I&#039;m not sure that the textures are safe to change, since the pointers are added to a hardware FIFO queue handled by the GPU rather than the main PPC processor, and after each GX_Flush() the whole thing has to get redrawn anyway.<br /><br />To be on the safe side, I would leave the texture in memory until your last relevant call to GX_Flush(). I know it might be a bit of a waste of space-time to leave it there, but I think that&#039;s just the price you pay for complicated texture rendering.]]></description>
<dc:creator>Myu0</dc:creator>
<category>Coding</category><pubDate>Sat, 14 Feb 2009 14:35:34 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9676,9678#msg-9678</guid>
<title>Re: When is it safe to delete a texture buffer?</title><link>http://forum.wiibrew.org/read.php?11,9676,9678#msg-9678</link><description><![CDATA[ Someone else would know better, but I think these three functions would help:<br /><br />GX_Flush(); GX_DrawDone(); GX_WaitDrawDone();<br /><br />I think calling these after GX_End() is sufficient?]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Thu, 12 Feb 2009 21:00:48 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9676,9676#msg-9676</guid>
<title>When is it safe to delete a texture buffer?</title><link>http://forum.wiibrew.org/read.php?11,9676,9676#msg-9676</link><description><![CDATA[ Okay, so I&#039;m running into an issue with the development of one of my libraries and figured I may as wella sk ehre in case anyone else has the same question.<br /><br />So I have a memalign&#039;ed buffer with pretty little RGBA8 format (or other) texture data. I create a GXTexObj and load the texture data into it with GX_InitTexObj. Next I load the texture object with GX_LoadTexObj and draw the texture to a quad with the GX_Begin/GX_End functions.<br /><br />Now, all is well and good but as what point can I safely free the originally memalign&#039;ed buffer and not cause a rendering error somewhere in the display pipeline? The main thing I&#039;m trying to avoid is for the rendering engine to not try to display a texture buffer which has been freed somewhere prior.<br /><br />So, any thoughts?]]></description>
<dc:creator>ArminTamzarian</dc:creator>
<category>Coding</category><pubDate>Thu, 12 Feb 2009 20:48:35 +0100</pubDate></item>
</channel>
</rss>