mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
5409f0b350
Sometimes the GPU is still busy when the next frame starts (like when no-vsync benchmarking), so we need to keep all those resources alone and create new ones. That's what the render object is for, so we just create another one. However, when we create too many, we'll starve the CPU. So we'll limit it. Currently, that limit is at 4, but I've never reached it (I've also not starved the GPU yet), so that number may want to be set lower/higher in the future. Note that this is different from the number of outstanding buffers, as those are not busy on the GPU but on the compositor, and as such a buffer may have not finished rendering but have been returend from the compositor (very busy GPU) or have finished rendering but not been returned from the compositor (very idle GPU). |
||
---|---|---|
.. | ||
resources | ||
gskvulkanblendmodepipeline.c | ||
gskvulkanblendmodepipelineprivate.h | ||
gskvulkanblurpipeline.c | ||
gskvulkanblurpipelineprivate.h | ||
gskvulkanborderpipeline.c | ||
gskvulkanborderpipelineprivate.h | ||
gskvulkanboxshadowpipeline.c | ||
gskvulkanboxshadowpipelineprivate.h | ||
gskvulkanbuffer.c | ||
gskvulkanbufferprivate.h | ||
gskvulkanclip.c | ||
gskvulkanclipprivate.h | ||
gskvulkancolorpipeline.c | ||
gskvulkancolorpipelineprivate.h | ||
gskvulkancolortextpipeline.c | ||
gskvulkancolortextpipelineprivate.h | ||
gskvulkancommandpool.c | ||
gskvulkancommandpoolprivate.h | ||
gskvulkancrossfadepipeline.c | ||
gskvulkancrossfadepipelineprivate.h | ||
gskvulkaneffectpipeline.c | ||
gskvulkaneffectpipelineprivate.h | ||
gskvulkanglyphcache.c | ||
gskvulkanglyphcacheprivate.h | ||
gskvulkanimage.c | ||
gskvulkanimageprivate.h | ||
gskvulkanlineargradientpipeline.c | ||
gskvulkanlineargradientpipelineprivate.h | ||
gskvulkanmemory.c | ||
gskvulkanmemoryprivate.h | ||
gskvulkanpipeline.c | ||
gskvulkanpipelineprivate.h | ||
gskvulkanpushconstants.c | ||
gskvulkanpushconstantsprivate.h | ||
gskvulkanrender.c | ||
gskvulkanrenderer.c | ||
gskvulkanrenderer.h | ||
gskvulkanrendererprivate.h | ||
gskvulkanrenderpass.c | ||
gskvulkanrenderpassprivate.h | ||
gskvulkanrenderprivate.h | ||
gskvulkanshader.c | ||
gskvulkanshaderprivate.h | ||
gskvulkantextpipeline.c | ||
gskvulkantextpipelineprivate.h | ||
gskvulkantexturepipeline.c | ||
gskvulkantexturepipelineprivate.h |