Wondering about Efficiency with my code

You could use a check on DeltaTime to perform the code at a lower rate than the tick like 5 times/s. However the code you are running is really low on the CPU so that won’t make much difference.