Giter Site home page Giter Site logo

Comments (3)

hecomi avatar hecomi commented on July 23, 2024

Raymarching is a very heavy technique. To make it work well on mobile, the per-pixel load needs to be reduced.

  • Reduce the complexity of the formula
  • Reduce the number of loops (Loop)
  • Increase the Minimum Distance so that the loop finishes faster
  • Reduce the resolution of the rendering buffer (uRaymarching does not support this)

And I ran the sample scenes in uRaymarching on Android and both Forward / URP (Forward) worked fine. Could you try the same?

from uraymarching.

tunchasan avatar tunchasan commented on July 23, 2024

Thank you for your support. I made remarkable optimization progress for mobile. I followed your instructions and got result. But there are still a few issue that I need to handle. I have tested project new version on Android Devices, BlueStack Android Emulator and IOS. The project run on IOS without any problem. But, there is an interesting case between BlueStack Android Emulator and Android devices. I simulated the project with very low Android device settings on BlueStack Android Emulator with 40-50 fps. Here is the interesting thing, when I run the project on Android device which has very high capabilities than the BlueStack Android Emulator, I get 1-5 fps.

I got screenshots from IOS, Android Device and BlueStack Android Emulator. I noticed the Shader Level. The shader level is 35 on BlueStack Android Emulator. Even I keep same settings, the shader level is 50 on Android Devices.

Note : I also shared the Device's hardware specifications on bottom the images.

BlueStack Android Test

BlueStack Test

Android Test - 1

Android Test 1

Android Test - 2

Android Test 2

IOS Test

IOS Test

from uraymarching.

hecomi avatar hecomi commented on July 23, 2024

1 fps seems too slow... It might be a good idea to connect Profiler to analyze to see if the graphics are really the cause.
(For example, the FPS often drops noticeably in cases where a lot of error messages are output.)

Of course, differences in Shader Level may also have an indirect effect, but I have no idea at this time... 😢

from uraymarching.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.