Support => NGUI 3 Support => Topic started by: dilshod on October 20, 2014, 10:46:35 PM
Title: high cpu-waits-gpu on iPad
Post by: dilshod on October 20, 2014, 10:46:35 PM
Hi,
I have a simple scene, all standard ngui sprites, 3 panels and 60-70 sprites, not so many draw calls and verts/tris, no special shaders, no post processing shaders, no clipping panels. Why cpu-waits-gpu time is so high? Value changes over time, some times it is 0, some times it is 3-4. On 60 fps, i can see some motion lags when cpu-waits-gpu is greater than 1. Testing on iPad mini 2, iOS 8.
Because your framerate is higher than 60 fps, and the device has to wait?
Nope, it is 60 fps, it's not higher. I think it has some input lags, maybe touches priority is low. Because when i move objects with a tween, it moves smoothly, but when i drag objects by hand moves are not smooth.
As it is said on page http://docs.unity3d.com/Manual/iphone-iOS-Optimization.html
Quote
Conversely, you can increase the framerate to give the rendering priority over other activities such as touch input and accelerometer processing.
Title: Re: high cpu-waits-gpu on iPad
Post by: dilshod on October 27, 2014, 12:01:13 AM
I fixed motion lag by smoothing drag delta. I just did something like this: