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

09/16/2012

Comments

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

MikeNicolella

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 :)

MikeNicolella

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.

Working...
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.

Working...

Post a comment