From 5ff36e91e5deb308a885efab473a730ed3ed5d64 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 26 Aug 2026 11:33:02 -0400 Subject: [PATCH] 1738941410676547997 --- ...s-how-long-maybe-its-taking-a-long-time.md | 41 ++++++++++++++++++ ...2023-12-25-matias__eduardo-thats-insane.md | 37 ++++++++++++++++ .../index.md | 42 +++++++++++++++++++ archive/threads/NOTimothyLottes/index.md | 1 + 4 files changed, 121 insertions(+) create mode 100644 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.md create mode 100644 archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/2023-12-25-matias__eduardo-thats-insane.md create mode 100644 archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/index.md diff --git a/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.md b/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.md new file mode 100644 index 0000000..dbfdd9d --- /dev/null +++ b/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.md @@ -0,0 +1,41 @@ +--- +title: "@NOTimothyLottes It takes how long!?" +type: archive +source: twitter +source_url: "https://x.com/matiasgoldberg/status/1739041284340211916" +author: "Matías N. Goldberg" +handle: matiasgoldberg +post_id: "1739041284340211916" +date: 2023-12-24 +archived: 2026-08-26 +draft: false +tags: + - archive + - twitter + - NOTimothyLottes +description: "@NOTimothyLottes It takes how long!?" +in_reply_to: "" +parent_post_id: "1738941410676547997" +--- + +## Source + +- URL: https://x.com/matiasgoldberg/status/1739041284340211916 +- Author: Matías N. Goldberg (@matiasgoldberg) +- Posted: 2023-12-24 21:52:06 + +## Branch + +**1/** **@matiasgoldberg** ^1739041284340211916 + +**@NOTimothyLottes** + +It takes how long!? + +Maybe it's taking a long time matching pEngineName to a known database? + +Or maybe the loader is too busy enumerating all ICD json files? + +## Related + +- Spine: [[archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan]] diff --git a/archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/2023-12-25-matias__eduardo-thats-insane.md b/archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/2023-12-25-matias__eduardo-thats-insane.md new file mode 100644 index 0000000..be75ad2 --- /dev/null +++ b/archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/2023-12-25-matias__eduardo-thats-insane.md @@ -0,0 +1,37 @@ +--- +title: "@NOTimothyLottes That's insane." +type: archive +source: twitter +source_url: "https://x.com/matias__eduardo/status/1739241329375199513" +author: "Matias" +handle: matias__eduardo +post_id: "1739241329375199513" +date: 2023-12-25 +archived: 2026-08-26 +draft: false +tags: + - archive + - twitter + - NOTimothyLottes +description: "@NOTimothyLottes That's insane." +in_reply_to: "" +parent_post_id: "1738941410676547997" +--- + +## Source + +- URL: https://x.com/matias__eduardo/status/1739241329375199513 +- Author: Matias (@matias__eduardo) +- Posted: 2023-12-25 11:07:01 + +## Branch + +**1/** **@matias__eduardo** ^1739241329375199513 + +**@NOTimothyLottes** + +That's insane. + +## Related + +- Spine: [[archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan]] diff --git a/archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/index.md b/archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/index.md new file mode 100644 index 0000000..8992eff --- /dev/null +++ b/archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan/index.md @@ -0,0 +1,42 @@ +--- +title: "The sometimes extra ~2.5 seconds on Vulkan initialization on my win10 AMD laptop is in vkCreateInstance()." +type: archive +source: twitter +source_url: "https://x.com/NOTimothyLottes/status/1738941410676547997" +author: "NOTimothyLottes" +handle: NOTimothyLottes +post_id: "1738941410676547997" +date: 2023-12-24 +archived: 2026-08-26 +draft: false +tags: + - archive + - twitter + - NOTimothyLottes +description: "The sometimes extra ~2.5 seconds on Vulkan initialization on my win10 AMD laptop is in vkCreateInstance()." +in_reply_to: "" +--- + +## Source + +- URL: https://x.com/NOTimothyLottes/status/1738941410676547997 +- Author: NOTimothyLottes (@NOTimothyLottes) +- Posted: 2023-12-24 15:15:14 + +## 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 + +![](https://pbs.twimg.com/media/GCH0hXUWUAAPRak?format=png&name=orig) + +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. diff --git a/archive/threads/NOTimothyLottes/index.md b/archive/threads/NOTimothyLottes/index.md index 613d3f1..480ed84 100644 --- a/archive/threads/NOTimothyLottes/index.md +++ b/archive/threads/NOTimothyLottes/index.md @@ -36,6 +36,7 @@ tags: - [[archive/threads/NOTimothyLottes/2023-12-20-i-share-the-same-unconventional-define-type]] - [[archive/threads/NOTimothyLottes/2023-12-20-ideally-a-gpu-profiling-graph-would-provide-at]] - [[archive/threads/NOTimothyLottes/2023-12-21-code-shy-brain-says-its-strange-to-be-reading]] +- [[archive/threads/NOTimothyLottes/2023-12-24-the-sometimes-extra-2-5-seconds-on-vulkan]] - [[archive/threads/NOTimothyLottes/2023-12-25-virtualized-xmas-thread]] - [[archive/threads/NOTimothyLottes/2023-12-26-no-luck-getting-d3dkmtgetscanline-to-work-thus-far]] - [[archive/threads/NOTimothyLottes/2023-12-29-end-of-2023-scaling-parallel-gfx-and-memory-thread]]