Skip to content

Instantly share code, notes, and snippets.

@gregorycu
Created February 12, 2015 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregorycu/5704c5bf1d2266193976 to your computer and use it in GitHub Desktop.
Save gregorycu/5704c5bf1d2266193976 to your computer and use it in GitHub Desktop.
// shader.cpp
// line 537
// void ShaderSource::onSetConstants
// Add the following to top of function:
static unsigned numLoops = 0;
++numLoops;
if ((numLoops % 200) != 0)
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment