Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

What does UnityRepaint() do ?

$
0
0
Hi, I am profiling my game on Instruments(Xcode) using the Allocations tool and I am getting a big 5.28MB malloc in UnityRepaint() when the game is in the idle state. I want to know what triggered the call. I believe the function is a part of metal but I am not familiar with how that works either. Here is the code of the function :> extern "C" void UnityRepaint() {> @autoreleasepool> {> // this will handle running on metal just fine (nop)> EAGLContextSetCurrentAutoRestore> autorestore(GetMainDisplaySurface());>> Profiler_FrameStart();>> UnityInputProcess();> UnityPlayerLoop();>> Profiler_FrameEnd();> } } Thanks!

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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