- Home /
Particles flicker in and out at low resolution.
I have created script where it will force the resolution to be 910 by 512 so I can create a 3D retro style space shooter but when I have a particle system and build the program it flickers in and out. The images arent very helpful but the second is taken right after the other and you can see some that were in the first arent in the second. Here is the code- float resolution = 512; // Use this for initialization void Start () { } // Update is called once per frame void Update () { Vector2 aspectRatio = new Vector2(Camera.main.pixelWidth, Camera.main.pixelHeight); aspectRatio.x /= aspectRatio.y; aspectRatio.y /= aspectRatio.y; int xRes = (int)(aspectRatio.x * resolution); int yRes = (int)(aspectRatio.y * resolution); Screen.SetResolution(xRes, yRes, true); }
Your answer
Follow this Question
Related Questions
Does rendering the game at lower resolution consumes less power on Android? 1 Answer
What happened to the Renderer.Render function? It has ceased to exist in Unity 5.x 1 Answer
Texture rendering 1 Answer
Best way to load high volume of particles. 1 Answer
Any way to have tap screen movement controls that ignore GUI Buttons for all aspect ratios? 0 Answers