Log In  

In case your game gets slow, it's always helpful to identify the parts of code that take up too much time to compute. This is how you can measure execution time:

local start = stat(1)
-- .... do some intensive stuff ....
printh("this took "..((stat(1)-start)*100).."% of a frame")

Hope it helps, and thanks to @Felice for pointing out how to accomplish this.

sulai

P#43676 2017-08-27 08:46 ( Edited 2017-08-27 14:51)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 18:18:05 | 0.009s | Q:7