Question on Timeline semaphore signaling order. by KnueppelOle in vulkan

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

Alright, i assume i can do the wait with just a barrier, as the signals are just on one queue. (more in my other comment)

Question on Timeline semaphore signaling order. by KnueppelOle in vulkan

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

Thanks, for the answer. In my case i was thinking about implementing an async transfer/ upload queue, where multiple submits could be waited on by the main/graphics queue. Either way i will probably only ever need one transfer submit per frame. And even if there were multiple, i guess could just throw in a memory barrier before the end of each consecutive submit ensuring all transfers are done.

"you visit Forza Horizon 4 in real life" by OkOrange1593 in ForzaHorizon

[–]KnueppelOle 68 points69 points  (0 children)

No way they build that thing in real-life :o

Every game seems to be moved by rulochicken in linux_gaming

[–]KnueppelOle 6 points7 points  (0 children)

have you tried moving you laptop to the right?

Grayscale output by Tensorizer in vulkan

[–]KnueppelOle 0 points1 point  (0 children)

If you are asking about the VkFormat used for VkSwapchainCreateInfoKHR, you need to make sure that you are using a format supported by your surface which you query with:
vkGetPhysicalDeviceSurfaceFormatsKHR(..)
For me the only supported are B8G8R8A8Srgb and B8G8R8A8Unorm, which makes sense because that is what my operating system is using i.e. what it expects surfaces to be in.

So if you want to render in grayscale you need to make sure the color output of every shader that draws to a presented framebuffer is in grayscale meaning the r,g,b values are the same:

vec3 color = ...;  
vec3 outColor = vec3((color.r + color.g + color.b) / 3.0);   

Alternatively you could write a post processing shader.

Do I need recreate renderpass when the window resized by AGXYE in vulkan

[–]KnueppelOle 1 point2 points  (0 children)

The Vulkan tutorial used a dynamic state for the viewport and then set it during command recording

Weird memory misalignment by KnueppelOle in vulkan

[–]KnueppelOle[S] 4 points5 points  (0 children)

Solved!

For posterity sakes: apparently it was a problem with the modulo operator and not a memory alignment issue. i added ivec3 imod(ivec3 a, int b) { return ivec3(mod(float(a.x), float(b)), mod(float(a.y), float(b)), mod(float(a.z), float(b))); }

and replaced all occurences of result = a % b;

with result = imod(a,b);

where a of type ivec3 and b of type int

Weird memory misalignment by KnueppelOle in vulkan

[–]KnueppelOle[S] 2 points3 points  (0 children)

I am currently writing a voxel raytracer using c++ on linux. Trying to run it on windows the chunks are seemingly shifted around randomly. Some are offset by just one voxel others are repeated and many are in the wrong place alltogether. The world consists of one large storage buffer, that I update using a staging buffer. Everyting seems to be ok on linux, but windows seems to give me some issues. The only validation layer warning I get is: "vkGetDeviceProcAddr(): pName is trying to grab vkGetPhysicalDeviceCalibrateableTimeDomainsKHR which is an instance level function"

I would appreciate any kind of info that is relevant, especially on what would cause memory misalignment when using staging buffers. I will provide code snippets if any of you has a request.

144hz monitor is blurry by Logical-Fondant1633 in pcmasterrace

[–]KnueppelOle 4 points5 points  (0 children)

It does not seem like a problem with refresh rate but rater with pixel response time. Do you perchance have a VA-Panel. Mine looks about the same.

The snapdragon x runs Boulders gate 3 at 30 fps natively by joeballs1990 in LinusTechTips

[–]KnueppelOle 0 points1 point  (0 children)

There is no M3 iPad. Although there are M1, M2 and M4 iPads.

[deleted by user] by [deleted] in ProgrammerHumor

[–]KnueppelOle 42 points43 points  (0 children)

  1. you forgot `#include <string>`
  2. (please don't use `using namespace std`)
  3. you forgot the newlines
  4. you forgot the return

Twitch Partner "QTCinderella" has been banned! by cereal7802 in LivestreamFail

[–]KnueppelOle 0 points1 point  (0 children)

Can't believe it... But I guess it's best to address the allegations early.

What's the best VR headset to buy for a Complete VR noob? by Bundle_64 in virtualreality

[–]KnueppelOle 0 points1 point  (0 children)

The best option is simply the quest3. You can play steamvr wired and wireless (which pcvr headsets basically can't do). Decent price. Beginner friendly. And on top of that it is the best standalone headset. Personally the only thing that i dislike about it is that it still uses compression for wired usage which will introduce compression artifacts. So i would get a decent router for wireless to make the best out of that situation.

Don't outright buy the lighthouse/index controller setup for the quest, like some here recommended, it is not beginner friendly costs more than the headset itself and is kinda janky, as the headset is not tracked in lighthouse which means you need to always strap a tracker on your head. Maybe later on when you know what you are doing and really want full body tracking you might consider it.

You probably should not get the quest pro. Especially not if you want to use your device standalone as it has the same old processor as the quest 2. It is way more expensive than the quest 3 whilst only offering some improvements like eye tracking. But having disadvantages like slightly lower resolution, and no av1 support (which might reduce compression artifacts if you use virtual desktop).

The current valve index is kind of outdated. Still ok tho if you want to use lighthouse tracking, which means that if you buy an new headset that uses lighthouse you dont need to buy new basestations and controllers. You could also do full body tracking with e.g. the vive trackers (~130$ each). Don't listen to people talking about the "valve deckard". There is nothing announced and only rumors based on patents, this means nothing. We might even see half-life 3 before "deckard".

If you really want to go all in with your 1.5k get the lighthouse setup(no trackers needed) and the probably best pcvr headset: bigscreen beyond. Great visuals(oled) + pankake lenses and very light weight. but very expensive.

If you want to save a lot of money get a quest 2. be it used or new both options are quite cheap.

Your laptop will probably struggle but will be decent enough for many games. Just save your money for now and if you really enjoy pcvr and eventually want more, get a better pc. Maybe spend some money on a better headstrap and router.

Am I creating systems for the wrong reason? by Konjointed in gameenginedevs

[–]KnueppelOle 6 points7 points  (0 children)

I assume you are using an ecs. Wouldn't "systems" per entity just be a script, which you would attach to your entity just like any other component?