Unity : OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
Adreno-GSL: <sharedmem_gpuobj_alloc:2668>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
上文为关键log,出现此log是因为Unity对于骁龙GPU的兼容导致的。已有相关开发者向Unity提出了此bug,但是截至目前Unity2020.1版本尚未解决。
如果出现频率高,需要降低显存消耗,优化显存开销。