Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

how much CPU do codes inside the update function use?

$
0
0
I need some **basic** but **exact** information about how calculations are done in unity. I know it depends on the process for example using `SendMessage` every frame can be a horrible resource hog. but what about setting a value? I think unity itself runs hundreds or maybe thousands of lines of code to render a frame. so does it really hurt to have a code in update function? or we should avoid it as much as we can? I need to know about different calculations so consider this list: SendMessage, Find, Mathf functions, Setting variables, Writing data on disk, and so on... A detailed answer would be a great help for many newbies here. thanks!

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>