Build is not rendering the game properly
I am encountering odd behavior when running a build of a game. The game starts with a startup screen (that has "Start Game" and "Tutorials" buttons). Pressing "Start Game" should load a randomly generated game map and render it.
There are two bugs (possibly related) that happen when I launch the game either by double-clicking in Finder or by launching from the command line (`open game.app`):
Immediately renders the startup screen with "holes" in it so you can see the background that should only appear when the actual map is rendered (see attachment #1)
If "Start Game" is pressed, it doesn't render the map; instead, parts of the game flash; either the entire screen flashes with the splash screen, or just the "start game" button flashes black. The flashing is very quick. It never properly renders the map.
However, all the while, the map is actually being correctly generated and can be controlled in the background. We have a Python interface to the game that lets us query the map for information and to control the players by sending commands. This is working properly in the background -- the bug is just that it's not rendering correctly. Debug commands also show that when pressing the "Start Game" button, all of our scripts that control map generation, etc. are properly executed. The problem is really just rendering the game (as far as I can tell).
The game runs fine in the editor. It only is an issue with running builds of the game. I have tried different versions of windowing the game; i.e., fullscreen vs. windowed. There are no logs that I can find that show an error. I have looked only in the Player.log. I'm not sure where else it might be.
The game build also runs fine on other machines. In particular, it runs fine on a Windows machine, and another OS X machine (10.13.4). I have tried building it myself, and running builds that were built on the other OS X machine. Neither work for on my machine.
Relevant information about my system:
Using Unity engine 2018.2.2f1, but the same behavior occurred with 2018.2.8f1.
OS X El Capitan (10.11.6)
Two graphics cards: NVIDIA GeForce GT 650M 1024 MB; Intel HD Graphics 4000. Unity always chooses the first card when running my build.
Any ideas of why this is happening only on my computer, and only in the builds, while I can still control the game in the backend?
Also sorry for the really bad formatting. I can't seem to get paragraph breaks to work here.
[1]: /storage/temp/124655-screen-shot-2018-09-16-at-81138-pm.png
Your answer
Follow this Question
Related Questions
Optimizing Shader Compiler for HDRP 0 Answers
Graphics rendering freezes after loading 0 Answers
Textures looking bad 0 Answers
builded game not rendering trees from really close distance 0 Answers
Why are there stripes in my grass? 1 Answer