The Game Creators
The Game Creators Home Click to Login
  Hot: Official TGC CompetitionLee is tweeting!July NewsletterSmart PackerBox2DWeb Hosting SurveyDGS BonanzaFPS Creator Bonanza;
The Game Creators
Code Snippets / [DBP] Multiple Dynamic Render Targets to Update Images

Go to the first page of this board Return to the Forum Menu Post Message
1 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
Todd Riggins

User


Joined: Fri Oct 29th 2004
Location: Texas, USA
Posted: 1st Feb 2009 20:04     Edited: 5th Aug 2009 01:47     | link | toggle

Hi all. I found this rendering target stuff pretty neat and thought I would share this. I cant believe I was missing out on the speed! pcRaider indirectly reminded me of the newsletter 69 article about this stuff. So thanks pcRaider!

This example demostrates that you can use multiple rendering targets and update it's target size area dynamically during runtime. This example updates the render targets every frame to just show how it effects the fps. Obviously, we would want to change the target size only when needed to not effect the fps this way. Ofcoarse as in this example as an extreme case, the more rendering targets you change in size at each frame, the slower it gets.

What can it be used for? For me, I needed a fast way to update a target scrolling area such as a word editor or a treeview area in my gui Im making. I could also imagine a use for it for a chat dialog like what MMO's use where you can resize the chat window to see more messages.

This is by far faster then trying to cut/clip images inside a rectangler area and updating images via the Get Image command and/or transfering specified image data through memblocks. Can't wait to use this method in my C coded plug-in.

Hope somebody can find this useful...

+ Code Snippet

Back to top
www.exodev.com
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
1 Messages - Page   of 1   
Search the Forum

Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Game Creator Store
Privacy Policy AUP Top of Page