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

Android One middle-end phone slow perfomance (resolved issue with Unity 2017 resetting hardwareAccelerated to false in the build process) #382

Closed
idchlife opened this issue Dec 6, 2018 · 3 comments

Comments

@idchlife
Copy link

idchlife commented Dec 6, 2018

Hello! Thank you very much for this fantastic project!

I was wondering, is there way to up the performance on now high-end devices?

Using Nokia 6.1 32GB for testing purpose.

Also, input file not working but I read somewhere here that it can be broken on some Android devices.

@KojiNakamaru
Copy link
Member

Could you please check https://github.com/gree/unity-webview#hardwareaccelerated for achieving a good performance? The implementation should automatically perform the required adjustment for AndroidManifest.xml and you should get a good performance at least after the second build. If you still feel that the webview is slow compared with the ordinal chrome browser, the implementation might fail to perform the adjustment because of some unknown bugs... Anyway, I think it is valuable to check https://github.com/gree/unity-webview#hardwareaccelerated if you haven't yet.

About "input file", I've implemented it once but put it experimental, because it cannot work for some devices as you described: #77 .

@idchlife
Copy link
Author

@KojiNakamaru I can't understand if this does show something, but when I export project from Unity, Android project, there is AndroidManifest.xml and it has hardwareAcceleration="false", despite manifest file in the Plugins/Android plugin having "true".

I tested Unity build with Samsung s7, s8, s9, all of the phones having very slow performance. s7 even freezes and starts to heat the phone

@idchlife idchlife changed the title Android One middle-end phone slow perfomance Android One middle-end phone slow perfomance (resolved issue with Unity 2017 resetting hardwareAccelerated to false in the build process) Dec 12, 2018
@idchlife
Copy link
Author

I discovered that I am able to build in Unity 2017 with hardwareAccelerated=true by exporting Android project (Unty -> build -> android -> checkbox export -> choose folder), opening exported folder with Android Studio, changing hardwareAccelerated to true in AndroidManifext.xml and building project from Android Studio.

After that it worked flawlessly!

I hope it helps everyone who stumbled across this issue.

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