阅读背景:

为什么我的文件加载线程没有与主线程并行化?

来源:互联网 

My program does file loading and memcpy'ing in the background while the screen is meant to be updated interactively. The idea is to have async loading of files the program will soon need so that they are ready to be used when the main thread needs them. However, the loads/copies don't seem to happen in parallel with the main thread. The main thread pauses during the loading and will often wait for all loads (can be up to 8 at once) to finish before the next iteration of the main thread's main loop.My program does file loading and memcpy'ing in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: