Search Issue Tracker

By Design

Votes

1

Found in

4.3.0f4

Issue ID

576770

Regression

No

Depth only camera clear flag together with image effect greatly reduce FPS on the device

Android

-

-

Priority: 6Not yet prioritized for a release

-

Severity: 2No workaround

Using image effects (in this case Grayscale Effect) together with the "Depth only" camera clear flag drastically reduces FPS on the device. The application has 60 fps with "Solid Color" clear flag, however with the "Depth only" clear flag it has only 3 fps. It is a regression on some of the devices. With Unity 4.2.2f1 the fps dropped to 15-25 on the Google Galaxy Nexus, but with Unity 4.3.4f1 it drops all the way down to 3 fps. On the other hand on Google Nexus 5 the fps drops to 3 in both Unity 4.2.2f1 and 4.3.4f1.

Reproduced on:
Google Nexus 5 with Android 4.4
Google Galaxy Nexus with Android 4.3

Reproduced with:
Unity Version 4.3.1f1 (cebd4d9b5122)

[Edit]
The workaround the user found in this case was to use a single camera and to render the image as a quad. By using a single camera, they avoided the 'Depth-only clear' which is slow on this hardware.

Resolution:
This is expected behavior. Clearing depth only means that the GPU must do framebuffer unresolve in order to retain the previous color surface contents.

Comments (1)

  1. 1d6a4f74536f3a17fb6c870f7059b901?d=mm

    KuangZheng

    Jul 31, 2014 00:55

    Is there any way to add image effect in Depth only camera without performance problem?

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.