Questions tagged [multithreading]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
675 views

Vulkan Queue (Family), Command (pool) and Hardware usage

I have some questions about the GPU usage of Queues / Queue families, command buffer / pool. I am reading the Book: ...
Thomas's user avatar
  • 1,198
3 votes
0 answers
310 views

Graphics APIs: read/write the same texture

I know we can't bind the same texture as an input resource to a shader and as a render target within a single draw call, Direct3D just forces unbinding of such a texture SRV, OpenGL says it's ...
Emil Kabirov's user avatar
0 votes
1 answer
67 views

Trouble making path tracer multithreaded, read access violation

I'm trying to make the path tracer shown in the Ray Tracing in One Weekend series multithreaded. Here's the starting of my main function: ...
Karthik's user avatar
  • 35
1 vote
1 answer
191 views

A pseudocode to parallelize a path tracer?

Where can I find a pseudocode to parallelize a path tracer using multiple cpu threads? How should I change the normal path tracer to be capable of parallelization?
bitWise's user avatar
  • 233
0 votes
1 answer
428 views

how to update my scene graph?

I am updating my scene graph in response to user input and the network. What is the best way to do this? The updating threads are separate. Some approaches I am thinking about: double buffer. There ...
user1095108's user avatar
2 votes
1 answer
120 views

How to handle GUI in a path traced renderer?

This isn't a pure CG question but it's more of a programming one related to CG. The main problem that occurs is both the GUI and the rendered scene need to be drawn regularly by swapping buffers. If ...
gallickgunner's user avatar
0 votes
1 answer
648 views

Issues with Multi-threaded Raytracing

I'm having some issues with my multi-threaded ray tracing implementation. It seems to only render about half of the image. Here is the picture: Here is the code: ...
Varun Govind's user avatar
4 votes
0 answers
81 views

Drawing "after" Present to achieve better performance

I had an application that was originally single threaded and worked as follows: gather the items to be drawn (occlusion / frustrum culling / sorting into batches) draw items using an immediate ...
default's user avatar
  • 333
2 votes
2 answers
927 views

How to use multithreading in 3D software renderer to speed up fetching texture values

The biggest bottleneck of my code is fetching texture RGB values from memory. My code looks something like this: ...
Benjamin Loisch's user avatar
1 vote
1 answer
889 views

How can I utilize all cores of CPU In my ray tracer with std::thread?

I have been working on a ray tracer and I was trying to use multiple threads to maximize the performance. I tried couple of approaches but there's no difference in performance. Here's my shot... <...
Ankit singh kushwah's user avatar
7 votes
1 answer
2k views

Why can't I utilize multiple CPU cores with OpenGL like Vulkan?

Can I pass the data to the GPU through multiple cores with OpenGL?
Ankit singh kushwah's user avatar
3 votes
1 answer
371 views

Avoiding CPU race condition/cache invalidation of RNG on multi thread path tracing

I'm implementing my path tracer using C++ and OpenMP partially based on the design of Small Paint (using a globally available RND function to generate random floats) and PBRTv2 (uses a single RNG ...
Mary Chang's user avatar
6 votes
1 answer
463 views

Instanced Stereo Rendering vs. Multiple Command Buffers

Source In this webpage from Nvidia, the author(s) seems to imply that you could create a command buffer for each eye on separate threads. However, I don't see the benefit to this over instanced stereo ...
aces's user avatar
  • 1,353
23 votes
3 answers
1k views

Why is thread safety such a huge deal for Graphics APIs?

Both Vulkan and DirectX12 are claimed to be usable in a thread-safe manner. People seem to be excited about that. Why is this considered such a huge feature? The "real" processing gets thrown over ...
ratchet freak's user avatar