Log in or register to post comments

OnPreCull Performance Issue

October 15, 2014 - 5:28am #1

Hi!

I started setting up a new unity project using vuforia and skyshop (latest versions). When I begann testing on iOS devices (iPad3/4/air) I encountered massive performance spikes whenever an image target was found and the object (13k tris mesh) was displayed. The unity profiler says that QCARAbstractBehavior.OnPreCull() takes 200+ ms. What could be the cause of this issue?

Here is a screenshot:
http://i.imgur.com/nAAArZU.png

The project is a recreation of an earlyer one I did at the beginning of the year (which worked without issues). So I use the exact same setup but with the latest versions of the plugins (skyshop and vuforia).

OnPreCull Performance Issue

October 27, 2014 - 3:28am #6

Thanks for your response!

I don't use any of the example scripts though.

If I'm allowed I will setup und upload a repro project with skyshop and vuforia. Or would just the mesh and materials be enough?

 

EDIT: In case someone has similar issues and since I'm starting production shortly I settled for the following (temporary) workaround: I downgraded shyshop to version 1.06.2. This doubles the framerate in some cases. Performance is still not perfect on older devices but good enough.

OnPreCull Performance Issue

October 22, 2014 - 1:10pm #5

Skyshop does not require any scripts to be attached to the Unity camera, though some of our examples do include one for basic mouse input. Try it without the example script if you are using it.

p.s if someone at Vuforia would like a copy of Skyshop to test with, email us at

:)

OnPreCull Performance Issue

October 22, 2014 - 8:06am #4

HI,

thanks for you reply!

I will try and find out if skyshop does anything to the ARCamera.

OnPreCull Performance Issue

October 21, 2014 - 10:55am #3

The OnPreCull() method is called on any active/enabled Unity script which is attached to a camera. Here's the Unity API doc:

http://docs.unity3d.com/ScriptReference/MonoBehaviour.OnPreCull.html

If the Skyshop plugin has any scripts attached to cameras then you may want to look through those to see if there's anything that might conflict with the ARCamera. We don't have access to the Skyshop plugin, so our troubleshooting will be limited to what you can reproduce in the samples sans Skyshop.

OnPreCull Performance Issue

October 21, 2014 - 2:42am #2

Maybe it would help to know what happens inside the OnPreCull method. Perhaps the process is just waiting for another one to finish and Vuforia has nothing to do with this issue. A little help would be appreciated. Thanks!

Log in or register to post comments