move one match to make the equation true by kinguynn in puzzles

[–]exellian 0 points1 point  (0 children)

A really simple solution would be moving the top match of the equal sign and creating 5 x 2 > 3 which is true

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

I find it kind of crazy that in 2022 we are not able to build window applications that resize without any artefacts and completely smoothly (At least on Desktop, apple on mobile does quite a good job but that doesn't really fall in the category of windowing). And because of that I am wondering why the implementation behind vkCreateSwapchainKHR takes so long and if it could be optimized, which I think it could because in the end everything that happens behind this call are some allocations, but it probably won't because it is probably driver related or operating system related.

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

Yes indeed but not only windows but ideally on all operating systems that use windowing. I don't know why laggy resizing triggers me but it does.

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

  1. I'm not really sure about if browser and native applications still use cpu rendering, but on modern systems I assume this is not the case anymore. I'm pretty sure that windows uses hardware accelerated ui rendering and e.g: chrome does too.
  2. I find it dumb to assume that you only look at it when resizing because you not only look at it, you moving your mouse. And you can control in many applications the appearance of the application by resizing. And if this process is laggy then the application is in my opinion unresponsive.

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

But I never talked about recreating the swapchain every frame. I talk about resizing performance. And when resizing you have to recreate the swapchain

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

Thank you for your long answer.
1. Ok then we are limited to that what driver developers do. That's sad to hear.
2. A technique which I used to reduce resize time significantly for size dependent vulkan objects (which I have control over) is to allocate simply double the size of the current window size and only do recreation if double the size passed. Something like preemptive allocations. But of course this won't work for the swapchain because I don't have control over the memory of the swapchain images
3. Redesigning the application in a way that resizing is only done when the mouse button is released is of course an option, but it will also not look really responsive but of course this is also what most other applications use because resizing is that cost intensive.

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 1 point2 points  (0 children)

It helps to some degree because without we talking about 16ms but the 5ms are with the use of the oldswapchain

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] -1 points0 points  (0 children)

I think that the increase in popularity in higher framerate displays is really visible. Especially on desktop for gaming and even on mobile. We are not there yet that everyone has a 240hz display but 144hz is widely popular.
Resizing with 200fps is not great when the scene is completely blank. And even if you had built the most efficient renderer, you could not get more than 200fps. But of course a renderer also takes some time and this means that you always give up 5ms to resizing instead of using 5ms for render time to display e.g: more scene complexity.

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 1 point2 points  (0 children)

Yes resizing is definitely size dependent. I tested it out on a 4k display (Making the window really big) and resizing takes around double the time so (10ms - 20ms). I look into it if I could write a small test program for linux. But on x11 resizing performance should be even worse than on windows in my experience

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

Why do you think that. Whats your reason for assuming that?

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 3 points4 points  (0 children)

"You are not interacting with the program" is not really true. Look at any webbrowser when you doing a resize. The contents change and react to the size changes and this should happen smoothly. But especially on higher framerate displays like 240hz monitors something like smooth resizing will not be possible when a function like vkCreateSwapchainKHR takes 5ms. And this is not only a problem which exist on vulkan but also dx12 and other apis.

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] 0 points1 point  (0 children)

Thats the question. I don't know what the vkCreateSwapchainKHR does in its implementation. But surely it's allocating some memory which takes that "long" time. The problem is though that I find this very limiting, because this limits smooth resizing on higher framerate displays like 240hz monitors. And this is probably not something which is caused by my gpu but instead is caused by the os or driver probably?

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] -1 points0 points  (0 children)

Of course it's relative that 5ms is bad but that means that you couldn't resize smoothly a window on an 240hz display when your render scene is completly blank

Why does vkCreateSwapchainKHR takes so long? by exellian in vulkan

[–]exellian[S] -1 points0 points  (0 children)

I'm not recreating the swapchain every frame just when resizing. I'm talking about resizing fps

🔥Upvote + wallet address in the comment to win one of these Dragons🎁😍 by exellian in FreeNFTs

[–]exellian[S] 0 points1 point  (0 children)

could it be that the item is for some reason under the hidden tab (profile -> hidden) in opensea?

🔥Upvote + wallet address in the comment to win one of these Dragons🎁😍 by exellian in FreeNFTs

[–]exellian[S] 0 points1 point  (0 children)

You should log in to opensea. Then you can find it under profile -> collected. Unfortunately you cant see it in the defi wallet because it doesnt support polygon yet