-
Notifications
You must be signed in to change notification settings - Fork 0
Home
在游戏引擎中充分利用多线程的威力:资源加载的不同方式对流畅性的影响 支持平台:Win32、Linux、Android、iOS。 开发语言:c++和OpenGL es 2.0 操作方式。点击屏幕,在四种方式下循环: 0、Idle,Do nothing 1、同步加载:IO、解析、编译shader、创建和销毁显存对象都在主线程里进行 2、半异步方式:IO和解析在资源线程里,编译shader、创建和销毁显存对象都在主线程里进行 3、异步方式:IO、解析、编译shader、创建和销毁显存对象都在资源线程里进行 说明: 白线是一帧花的时间 红线是IO时间 绿线是资源解析花的时间 蓝线是shader编译和资源创建花的时间 黄线是销毁资源花的时间
Take full advantage of the power of Multi-threaded in game engine. Different ways to load resource have different fluency. Supported platforms: Win32、Linux、Android、iOS。 Development language: c++和OpenGL es 2.0 Operation specification. Click the screen and four modes will switched in turn: 0 Idle, Do nothing 1 Sync load: IO, parse, compile shader, create and destroy resource are executed all in main thread. 2 Semi-async load: IO and parse resource are executed all in resource thread, and compile shader, create and destroy resource are executed in main thread. 3 Async load: IO, parse, compile shader, create and destroy resource are executed all in resource thread. Specification: White line is the time spent in one frame. Red line is the time spent in IO. Green line is the time spent in parsing resource. Blue line is the time spent in compiling and creating resource. Red line is the time spent in destroying resource.