Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render targets issue on iOS devices #9

Open
oct-test opened this issue Jan 13, 2020 · 4 comments
Open

Render targets issue on iOS devices #9

oct-test opened this issue Jan 13, 2020 · 4 comments

Comments

@oct-test
Copy link

I am trying to integrate this project into my iOS game. When I run the build on iOS devices, I get the following crash log:

Screenshot 2020-01-11 at 10 26 38 AM

Devices on which the build crashes: iPad Air (1st gen - A7 chipset), iPhone 6s (A9 chipset), iPhone 7 Plus (A10 Fusion)

Device on which the build runs properly: iPhone X (A11 Bionic)

Unity version: 2019.2.16f1

I have the following questions:

  1. Is this a limitation of CETO water system?
  2. If no, how can I modify the code to make it run on the majority of the iOS devices?

I would appreciate any suggestions and thoughts on this topic. Thank you.

@Scrawk
Copy link
Owner

Scrawk commented Jan 13, 2020

Hi,

Ceto is not supported on mobile device. It may work on some but performance will terrible.

It looks like the error you are having is because Ceto is using a 32 bit texture and the device only supports 16 bit.

You can try searching the project for all references to TextureFormat.RGBAFloat and RenderTextureFormat.RGBAFloat and replacing them with half format. It may not work correctly with half formats however.

@oct-test
Copy link
Author

Thank you for your reply. That solution did work and the performance is poor as you said. Do you have any suggestions/thoughts about improving the performance of the plugin on mobile devices? Which setttings of the plugin will affect the performance most?

@Scrawk
Copy link
Owner

Scrawk commented Jan 13, 2020

Keep the Fourier grid size as small as possible and render the ocean in the opaque object queue (see the manual).

Other than that theres not really much you can do. The shaders just to heavy for a mobile.

@oct-test
Copy link
Author

Thank you for your reply. I will look into that manual and will let you know the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants