Shawn Hargreaves Blog
Along with biros, brollies, and butties, blu-tack is a classic British product that remains largely unknown in America. A shame, because it is a great tool for testing and optimizing game code!
The wonderful thing about blu-tack is that you can stick pieces of it on your TV to mark specific locations on the screen.
This is invaluable when dealing with title safe areas. Want to be more accurate than just guessing where the limit is? Too lazy to modify your game code to display it? Just run this sample (which will display the safe area as an overlay) and mark the four corners with pieces of blu-tack. Voila! Now you can instantly see if any graphics go outside these bounds.
Another use is for profile analysis. Development builds of MotoGP included a simple profiler that timed how long each subsystem took to execute. The results were displayed as a bar along the top of the screen, with a different color per subsystem and time along the horizontal axis. Half the screen represented 1/60 of a second, so if the bar got too far to the right, that meant we had a performance problem. "Yikes!" someone might cry, "Over an inch and a half of yellow! What's gone wrong with the AI code?" (although it pains me to admit I have entirely forgotten which color went with each subsystem).
Blu-tack came into play when trying to speed up a troublesome piece of code:
This made it trivially easy to see how my changes were affecting performance, and to keep a record of previous results by accumulating multiple markers. By the end of an optimization session, my TV was usually covered with tiny pieces of blue gum.
We had this growing up but it was called Fun Tak, we used to hang our posters up with it:
Clever idea, I recently ran into this where I didn't want to change my game code to display the title safe region and I ended up taking screen shots and cropping them, but I like this better.
Nice idea, I like using acrylic glass, which you can usually pick up a big enough sheet for a monitor or small tv cheap at any hardware store out of the scrap bin. That way I can also write notes on it using an erasable marker, occasionally though I end up having to sand and polish a side of the glass because it gets to smeary. To keep it from sliding off I drill holes in the two top corners and run wooden dowels through them, though I imagine chip clips and string would work just as well.
"What's the difference between a technique and a hack?"
"blu-tack is a ... great tool for testing and optimizing game code!"
Oh the delicious irony :)