Files
2026-08-26 11:33:02 -04:00

2.0 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
The sometimes extra ~2.5 seconds on Vulkan initialization on my win10 AMD laptop is in vkCreateInstance(). archive twitter https://x.com/NOTimothyLottes/status/1738941410676547997 NOTimothyLottes NOTimothyLottes 1738941410676547997 2023-12-24 2026-08-26 false
archive
twitter
NOTimothyLottes
The sometimes extra ~2.5 seconds on Vulkan initialization on my win10 AMD laptop is in vkCreateInstance().

Source

Thread

1/ @NOTimothyLottes ^1738941410676547997

The sometimes extra ~2.5 seconds on Vulkan initialization on my win10 AMD laptop is in vkCreateInstance(). Dominates all other load costs at this point when starting from warm caches. Kicking extra threads has relatively low cost, so things like window creation get pipelined

Branches: archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/2023-12-24-matiasgoldberg-it-takes-how-long-maybe-its-taking-a-long-time, archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/2023-12-25-matias__eduardo-thats-insane

2/ @NOTimothyLottes ^1738942198089965923

VkImportMemoryHostPointerInfoEXT change finished. On launch I map the Kart file, then kick a copy of the Kart to the start of the 'single GPU buffer' followed by optional image init from offsets in the GPU copy. The map stays for GPU write back to the Kart file.

3/ @NOTimothyLottes ^1738943024653066639

I do still have a background page walker running at launch to try to pre-warm pages ahead of usage. And this also applies to the memory mapped Kart file. The net of all this is the minimal possible work at startup given the constraints of the current OS/APIs.