« Reference counting smart pointers are for retards. | Main | Jesus wants you to optimize your code... »



Feed You can follow this conversation by subscribing to the comment feed for this post.


Yep, handy.

Another handy use of this is if you pipeline your game loop - ie in frame N, doing simulation for frame N, and rendering for frame N-1. If you can afford the extra frame of latency. In that case you'll have two of these and persist the memory for two frames.

Even more handy than this if you have a real producer/consumer pair of systems - ring buffers :)


Also, this is *almost* production ready, if you remove those offensive leading underscores ;)

I know everyone scoffs at it, but there's the whole "identifiers with leading underscore + uppercase letter are reserved by by implementation"

Stephen Nichols

LOL! Offensive leading underscores, eh? ;)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)