How to speed up vkCreateInstance?











up vote
-1
down vote

favorite












I am actually looking to a basic vulkan sample.



But I found that the apparition of the triangle pretty slow, so I took a profiler and it show me that the vkCreateInstance call take 596ms. For me this is surprising slow.



Is there a way to make it go much faster?



PS: The validation layer is disabled and the driver of my 980 GTX is update to date.










share|improve this question
























  • Download Vulkan Loader's source code and check what is going on in there.
    – Ekzuzy
    Nov 11 at 20:17










  • Ok did a profile of the demo that comes with the LunarG SDK, and it takes only 60ms for the vkCreateInstance. I suspect that GLFW doing something wrong with required extensions.
    – Xavier Bigand
    Nov 11 at 23:05










  • vkCreateInstance is not expected to be a hotspot, though 0.6 s is pushing it. Update to the latestest drivers from given GPU vendor website. If that does not help complain to the vendor.
    – krOoze
    Nov 12 at 19:44










  • I'm voting to close this question as off-topic because vkCreateInstance use is quite straightforward. Either there is some user measuring error or misuse (that is not shared in the OP), or it simply takes that long and StackOverflow audience can do nothing about it, and it needs to be discussed with appropriate softwaredriver vendors instead.
    – krOoze
    Nov 14 at 14:21










  • I already wrote that I am using the latest driver version with an up to date LunarG SDK too,... Both sample compiled with same version of Visual Studio in release mode. Maybe I need to do investigations my self, but a more experienced user with VK should be able to point me how layers can impact performances due to the number of indirections,...
    – Xavier Bigand
    Nov 14 at 20:13

















up vote
-1
down vote

favorite












I am actually looking to a basic vulkan sample.



But I found that the apparition of the triangle pretty slow, so I took a profiler and it show me that the vkCreateInstance call take 596ms. For me this is surprising slow.



Is there a way to make it go much faster?



PS: The validation layer is disabled and the driver of my 980 GTX is update to date.










share|improve this question
























  • Download Vulkan Loader's source code and check what is going on in there.
    – Ekzuzy
    Nov 11 at 20:17










  • Ok did a profile of the demo that comes with the LunarG SDK, and it takes only 60ms for the vkCreateInstance. I suspect that GLFW doing something wrong with required extensions.
    – Xavier Bigand
    Nov 11 at 23:05










  • vkCreateInstance is not expected to be a hotspot, though 0.6 s is pushing it. Update to the latestest drivers from given GPU vendor website. If that does not help complain to the vendor.
    – krOoze
    Nov 12 at 19:44










  • I'm voting to close this question as off-topic because vkCreateInstance use is quite straightforward. Either there is some user measuring error or misuse (that is not shared in the OP), or it simply takes that long and StackOverflow audience can do nothing about it, and it needs to be discussed with appropriate softwaredriver vendors instead.
    – krOoze
    Nov 14 at 14:21










  • I already wrote that I am using the latest driver version with an up to date LunarG SDK too,... Both sample compiled with same version of Visual Studio in release mode. Maybe I need to do investigations my self, but a more experienced user with VK should be able to point me how layers can impact performances due to the number of indirections,...
    – Xavier Bigand
    Nov 14 at 20:13















up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am actually looking to a basic vulkan sample.



But I found that the apparition of the triangle pretty slow, so I took a profiler and it show me that the vkCreateInstance call take 596ms. For me this is surprising slow.



Is there a way to make it go much faster?



PS: The validation layer is disabled and the driver of my 980 GTX is update to date.










share|improve this question















I am actually looking to a basic vulkan sample.



But I found that the apparition of the triangle pretty slow, so I took a profiler and it show me that the vkCreateInstance call take 596ms. For me this is surprising slow.



Is there a way to make it go much faster?



PS: The validation layer is disabled and the driver of my 980 GTX is update to date.







vulkan






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 17:15









πάντα ῥεῖ

71.4k972134




71.4k972134










asked Nov 11 at 17:10









Xavier Bigand

465




465












  • Download Vulkan Loader's source code and check what is going on in there.
    – Ekzuzy
    Nov 11 at 20:17










  • Ok did a profile of the demo that comes with the LunarG SDK, and it takes only 60ms for the vkCreateInstance. I suspect that GLFW doing something wrong with required extensions.
    – Xavier Bigand
    Nov 11 at 23:05










  • vkCreateInstance is not expected to be a hotspot, though 0.6 s is pushing it. Update to the latestest drivers from given GPU vendor website. If that does not help complain to the vendor.
    – krOoze
    Nov 12 at 19:44










  • I'm voting to close this question as off-topic because vkCreateInstance use is quite straightforward. Either there is some user measuring error or misuse (that is not shared in the OP), or it simply takes that long and StackOverflow audience can do nothing about it, and it needs to be discussed with appropriate softwaredriver vendors instead.
    – krOoze
    Nov 14 at 14:21










  • I already wrote that I am using the latest driver version with an up to date LunarG SDK too,... Both sample compiled with same version of Visual Studio in release mode. Maybe I need to do investigations my self, but a more experienced user with VK should be able to point me how layers can impact performances due to the number of indirections,...
    – Xavier Bigand
    Nov 14 at 20:13




















  • Download Vulkan Loader's source code and check what is going on in there.
    – Ekzuzy
    Nov 11 at 20:17










  • Ok did a profile of the demo that comes with the LunarG SDK, and it takes only 60ms for the vkCreateInstance. I suspect that GLFW doing something wrong with required extensions.
    – Xavier Bigand
    Nov 11 at 23:05










  • vkCreateInstance is not expected to be a hotspot, though 0.6 s is pushing it. Update to the latestest drivers from given GPU vendor website. If that does not help complain to the vendor.
    – krOoze
    Nov 12 at 19:44










  • I'm voting to close this question as off-topic because vkCreateInstance use is quite straightforward. Either there is some user measuring error or misuse (that is not shared in the OP), or it simply takes that long and StackOverflow audience can do nothing about it, and it needs to be discussed with appropriate softwaredriver vendors instead.
    – krOoze
    Nov 14 at 14:21










  • I already wrote that I am using the latest driver version with an up to date LunarG SDK too,... Both sample compiled with same version of Visual Studio in release mode. Maybe I need to do investigations my self, but a more experienced user with VK should be able to point me how layers can impact performances due to the number of indirections,...
    – Xavier Bigand
    Nov 14 at 20:13


















Download Vulkan Loader's source code and check what is going on in there.
– Ekzuzy
Nov 11 at 20:17




Download Vulkan Loader's source code and check what is going on in there.
– Ekzuzy
Nov 11 at 20:17












Ok did a profile of the demo that comes with the LunarG SDK, and it takes only 60ms for the vkCreateInstance. I suspect that GLFW doing something wrong with required extensions.
– Xavier Bigand
Nov 11 at 23:05




Ok did a profile of the demo that comes with the LunarG SDK, and it takes only 60ms for the vkCreateInstance. I suspect that GLFW doing something wrong with required extensions.
– Xavier Bigand
Nov 11 at 23:05












vkCreateInstance is not expected to be a hotspot, though 0.6 s is pushing it. Update to the latestest drivers from given GPU vendor website. If that does not help complain to the vendor.
– krOoze
Nov 12 at 19:44




vkCreateInstance is not expected to be a hotspot, though 0.6 s is pushing it. Update to the latestest drivers from given GPU vendor website. If that does not help complain to the vendor.
– krOoze
Nov 12 at 19:44












I'm voting to close this question as off-topic because vkCreateInstance use is quite straightforward. Either there is some user measuring error or misuse (that is not shared in the OP), or it simply takes that long and StackOverflow audience can do nothing about it, and it needs to be discussed with appropriate softwaredriver vendors instead.
– krOoze
Nov 14 at 14:21




I'm voting to close this question as off-topic because vkCreateInstance use is quite straightforward. Either there is some user measuring error or misuse (that is not shared in the OP), or it simply takes that long and StackOverflow audience can do nothing about it, and it needs to be discussed with appropriate softwaredriver vendors instead.
– krOoze
Nov 14 at 14:21












I already wrote that I am using the latest driver version with an up to date LunarG SDK too,... Both sample compiled with same version of Visual Studio in release mode. Maybe I need to do investigations my self, but a more experienced user with VK should be able to point me how layers can impact performances due to the number of indirections,...
– Xavier Bigand
Nov 14 at 20:13






I already wrote that I am using the latest driver version with an up to date LunarG SDK too,... Both sample compiled with same version of Visual Studio in release mode. Maybe I need to do investigations my self, but a more experienced user with VK should be able to point me how layers can impact performances due to the number of indirections,...
– Xavier Bigand
Nov 14 at 20:13



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53251167%2fhow-to-speed-up-vkcreateinstance%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53251167%2fhow-to-speed-up-vkcreateinstance%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues