For now don't use any of these methods of speeding up things, just stick to griffpatch's one. All of these are slower than regular method, may become faster with further changes. Right now it's very slow. 2 is original method, without any modifications. Change the raycast slider for different methods Method 1 uses costumes of different lengths to calculate the distance, but for some reason sprite touching sprite, sprite touching color and color touching color blocks are all slow when they're with a switch costume block. average loop count is 5, but gives a FPS of about 20 for a single ray. so unless ST fixes this bug or someone finds a good solution to this it's useless Method 2 is the regular method, which takes about 160 loops and gives a decent FPS for 1 ray, but would be very slow for multiple rays. Method 3 uses a similar approach to method 1, except uses size switching, which for some reason is way faster than costume switching, and is inaccurate (only for now). takes about 20 loops on an average, and gives a decent FPS. Scratch Wiki for FPS counter tutorial. Page: https://en.scratch-wiki.info/wiki/Making_an_FPS_Counter