首页>
外国专利>
METHOD AND APPARATUS FOR CONTROLLING SYNCHRONIZATION OF CPU THREADS AND GPU THREADS
METHOD AND APPARATUS FOR CONTROLLING SYNCHRONIZATION OF CPU THREADS AND GPU THREADS
展开▼
机译:控制CPU线程和GPU线程的同步的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method and apparatus for controlling the synchronization of central processing unit (CPU) threads and graphics processing unit (GPU) threads, and a computer-readable storage medium, wherein said method comprises: when image frames are rendered by a GPU, creating GPU barriers for GPU threads, the initial state of the GPU barriers being a closed state (S101); creating signal events for CPU threads, the initial state of the signal events being a no signal state (S102); binding the GPU barriers and the signal events together (S103); calling a preset function to suspend the CPU threads, and waiting for the signal events to be changed to a signaled state (S104); when the image frames have been completely rendered by the GPU, opening the GPU barriers, and setting the signal events to a signaled state, thus waking up the CPU threads by means of the preset functions (S105). The described method has the technical effect of synchronizing program logic on Direct3D 12 with program images.
展开▼