Anywhere you have a bunch of lua code that will take time to execute. The main game stops executing each frame to do Lua stuff, and it stays in the Lua code until it yields. So if you have an intensive loop, for example, or iterate over a lot of objects, then you may find it ends up staying inside the Lua code for a while. That'd be the right place for a yield.