Aralekk / simple360player_iOS

Simple 360 Video player for iOS using SceneKit
161 stars 22 forks source link

device utilization % very high #11

Open AdvanceYe opened 8 years ago

AdvanceYe commented 8 years ago

hi Aralekk, I found the device getting very hot when running this player(it once induce the system restart), so I analyze with xcode instruments GPU tool, and found: renderer utilization %: 70~82 tiler utilization %:70~86 texture count: 809 device utilization %: 74~89

maybe an issue? or is there any method to lower them? thanks a lot~

terenzeyuen commented 8 years ago

Just profiled with time profiler – CPU max 20-30% for me.

Aralekk commented 8 years ago

I've raised the issue with the SceneKit team at wwdc and showed them CPU/GPU profiles, they'll be looking into it. The issues seems to be with the spritekit SKVideoNode rendering using the metal renderer. You can turn off metal rendering and use openGL which may improve things with the info.plist key "preferOpenGL" set to True

Hope to have some correction from apple soon

waltermvp commented 8 years ago

@Aralekk cannot find the preferOpenGL flag in the plist. Has is moved elsewhere?

Aralekk commented 8 years ago

the actual flag is "PrefersOpenGL" :) sorry for the typo

waltermvp commented 8 years ago

@Aralekk thanks for the reply but i dont think the latest version contains that. Is it in the main info.plist?

waltermvp commented 8 years ago

Also when I manually changes to OpenGL in the storyboard i only got black screens