Questions tagged [gpu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
45 views

Dynamic array approach for GPU buffers

On CPU dynamic arrays are often used to store data of dynamic size, and often implemented by doubling the size when the array is full and copying the data over. The data structure has amortized O(1) ...
user avatar
0 votes
0 answers
22 views

How to compute a GPU's theoretical GFLOPs based on its specs?

I was looking at the specs of this GPU in particular, and tried to compute its theoretical GFLOPs based on more basic specs, such as clock frequency and number of CUDA cores. My first thought was: ...
user avatar
  • 111
1 vote
2 answers
70 views

What does memory bandwidth of a GPU mean exactly?

This question is motivated by looking at two numbers for different GPU's: (1) the memory size and (2) the memory bandwidth. My understanding is that memory bandwidth means, the amount of data that can ...
user avatar
  • 111
0 votes
0 answers
13 views

Cg - fixed data type

I noticed that Cg has data type fixed, which is: a 12bit fixed point number Does any hardware even support that? AFAIK most GPUs don't even support 16bit floats ...
user avatar
  • 556
0 votes
0 answers
55 views

Inter-Process communication in compute shaders

How do I write a code to facilitate common shared memory for communication between multiple shaders as well as processes within them in python?
user avatar
0 votes
0 answers
93 views

Wavefront Path Tracing: Implementation and Performance Issues

I'm writting a real-time unidirecional path tracer that runs entirely on the GPU. After successfully implementing it using a "megakernel" approach, I decided to switch to a "Wavefront&...
user avatar
1 vote
1 answer
67 views

Performance impact/implications of constant buffers / uniform buffers

Constant buffers stay constant throughout entire dispatches / draw calls, and thus their data can presumably be shared as efficiently as possible between different threads using those buffers. But I ...
user avatar
  • 105
0 votes
1 answer
155 views

Compute shader workgroups execution and size [closed]

I want to clarify how are workgroups executed on various GPUs, thus I have several questions. I know that different GPU architectures work differently, but I expect an answer YES if there is single (...
user avatar
0 votes
1 answer
98 views

2d gpu powered rendering engine

First of all I am not sure if this is the correct place to ask my question. If it is not please be so kind to point me in a direction where my question is relevant. A while ago I came across this ...
user avatar
0 votes
1 answer
255 views

Is drawing Bezier curve with scanline algorithm possible with Vulkan?

As an information, Vulkan is a low-level abstraction layer thru modern GPU. It allows programmers to program the GPU and assemble rendering pipeline. On that pipeline, there are modules of program ...
user avatar
1 vote
1 answer
57 views

Are intersections still hardware accelerated if we define a custom intersection program in Optix?

I've stumbled into Optix samples that define their own intersection programs to define how primitives intersect (or don't) with a ray, and others (mostly those only dealing with triangle meshes) that ...
user avatar
  • 75
0 votes
1 answer
35 views

Is it possible to get recording device from meta data?

Im not sure if this is the right section to ask this question but i figured its worth a shot. Is it possible to take metadata from a video and use that data to identify what phone model was used to ...
user avatar
  • 1
3 votes
1 answer
70 views

Why does UV tiling affect performance in volumetric ray marching?

I am building a volumetric ray marching shader in HLSL in Unreal Engine, based on Ryan Brucks’ work: https://shaderbits.com/blog/creating-volumetric-ray-marcher I am trying to add some additional ...
user avatar
0 votes
0 answers
26 views

How to troubleshoot GPU card that fails after weeks and works well after restart?

A computer "Controller" that controls several screens has separate GPU Cards attached. after weeks of running smooth screens attached to "a card" will fail showing no signal and ...
user avatar
1 vote
2 answers
245 views

What data is passed from the CPU to the GPU each frame?

I've been reading a bit about the graphics pipeline for processing on a graphics card, and I'm interested to know in what kind of format data is passed from the CPU to the GPU when rendering 3D ...
user avatar
  • 113
5 votes
1 answer
900 views

What are 'mesh clusters' / hierarchical cluster culling (with LOD?) / triangle cluster culling and how do they relate?

I've seen several references to this and related concepts now but I can't find any hard details about these systems, and how they are implemented. The earliest reference I can find is from the "...
user avatar
  • 105
5 votes
1 answer
877 views

Binding vs bindless

I was trying to understand what exactly is 'binding'. I found an answer on quora on this. From this, binding basically sounds like sending data from to GPU with help from CPU. I got to know more about ...
user avatar
0 votes
1 answer
38 views

How does the OS + hardware support multiple screen resolutions and multi-display?

Modern operating systems support a wide range of resolutions. Mine ranges from 800x600 to 1920x1080. They also support multi-displays. I've never tried it but I have seen other users with 2 or 3 ...
user avatar
  • 103
0 votes
3 answers
70 views

FLOP - exact definition

I am interested in how much a GPU can actually calculate. When learning about rendering, it seems like a good idea as well. My Question: WHAT EXACTLY is a Floating Point Operation? I know what a ...
user avatar
0 votes
1 answer
116 views

Using Software Rendering to make an External GPU

I was looking at the Raspberry Pi 4 specs and realized that running a software renderer on the pi could get some decent graphics. By using USB ports and Ethernet ports, I think I might be able to send ...
user avatar
0 votes
1 answer
63 views

is utilizing multiple GPUs better than using one for all software?

In cases of Laptops, some will have two GPUs. One is built-in (e.g. Intel) and another one attachable (e.g. Nvidia). Is it better to have each of them operate different software to divide the load? or ...
user avatar
2 votes
2 answers
158 views

Why do some videos look smoother and others don't on the same monitor

I have a Dell monitor with 60 Hz refresh rate and therefore games playing on it are not very smooth as compared to 120 hz. But when I open videos on YouTube of the same game on the same monitor, some ...
user avatar
1 vote
0 answers
62 views

GL_OUT_OF_MEMORY Error when glDispatchCompute takes longer

I built a simple Ray Tracer which takes use of OpenGL's Compute Shader and traces ".obj" Files. The results are passed to the Host-Program via glMapBufferRange after finishing computing. ...
user avatar
0 votes
1 answer
87 views

Operations in the Rendering Pipeline

I have a few short question regarding operations happening in the rendering pipeline (OpenGL, Vulkan, I'd expect for all questions to have similar answers for these two frameworks while DirectX might ...
user avatar
  • 67
2 votes
2 answers
2k views

Optimizing compute shader with thread group shared memory

I'm currently learning compute shaders and I'm trying to write an optimized Game Of Life. I have a first version working that uses a Shader Storage Buffer Object. I dispatch a thread per cell I want ...
user avatar
0 votes
0 answers
55 views

GPU accelerated 2D graphics library with signed distance functions

I want to create my own 2D graphics library using signed distance functions where everything is drawn on the GPU. Browsing the web I quickly found Inigo Quilez website that describes how to draw basic ...
user avatar
  • 101
1 vote
0 answers
47 views

What modern C++ Unit Testing Framework do you use for highly parallel image, 3D and higher dimensional matrix processing workloads? [closed]

Most of the existing open-source libraries such as OpenCV, Tensorflow, and Pytorch use Google Test. I would like to know about strong alternative testing frameworks that thrive under a similar ...
user avatar
1 vote
1 answer
68 views

Do we have OpenGL shaders write out the intermediate *.o-esque file on first compile so that we can skip compiling them in run-time every single time?

Shaders get compiled during runtime every single time an app starts. I understand the reasoning for this is that there are so many GPU architectures out there that it does not make sense to ship pre-...
user avatar
  • 113
2 votes
0 answers
25 views

Visualizing auras around clusters of points

For a real-time application I am trying to add glow to a few hundred points. These points are more like 2D circles of various small sizes on the screen. These points are supposed to be like balls of ...
user avatar
  • 143
0 votes
0 answers
184 views

Queue from a family queue that supports presentation doesn't work [Vulkan]

I'm following this tutorial on Vulkan and I tried to see if it actually worked with different queues for drawing and presenting the image of the triangle. My GPU supports presentation with every queue ...
user avatar
  • 9
0 votes
1 answer
264 views

Sending programs from CPU to GPU

How does a CPU know which piece of code should be executed on GPU (i.e how to recognize whether a code is shader or not) and how is it been sent to GPU VRAM?Is it via DMA?
user avatar
0 votes
0 answers
105 views

After making any 3D model using Opengl how to export it's data in .dae file?

I'm trying to make simple 3d modeling program in c++ with Opengl. So I don't know how to transfer/convert/export or save data of 3D model in .dae file. NOTE:- 3d model is made using Opengl ...
user avatar
2 votes
3 answers
398 views

Latency difference between texture copy on GPU vs CPU?

Does anyone happen to know the latency difference between copying a texture on cpu (using, say, memcpy) compared to gpu (using, say, ...
user avatar
1 vote
1 answer
51 views

Performance of particle implementation

I am about to implement the renderer for a simple particle system. Every particle has to be updated every frame (position, rotation, scale) and so I was wondering which way is usually faster: ...
user avatar
  • 113
4 votes
1 answer
390 views

Double buffering always necessary?

Question from the graphics newbie: What I know by now is that "usually" double buffering is used: You calculate the content of frame x+1 while frame x is shown on the screen, if you want to achieve ...
user avatar
  • 277
1 vote
1 answer
135 views

Tessellation Speed in terms of interpolated points per second

For a research project, I have written a Tessellation Shader to interpolate solution points of a 3-Dimensional mathematical equation. Therefore I don't use any techniques for displacement, I merely ...
user avatar
  • 11
3 votes
1 answer
774 views

Is it possible to do color conversion on decoded video without getting it from GPUmemory to CPU memory?

Decoding video will result in different pixel formats on different GPUs and drivers. I have an application which can render (using OpenGL), only the RGB8 pixel format, therefore I need to do color ...
user avatar
0 votes
0 answers
163 views

Software Rendering Display Latency

I've been doing some reading as to how to reduce input delay on modern computing devices. A lot of my understanding from this comes from the VR research paper by Carmack explaining the numerous ...
user avatar
7 votes
1 answer
2k views

Is vkCmdPushDescriptorSetKHR efficient?

I am new to Vulkan. Compared to DX12, the resource binding procedure seems a little bit complicated. In terms of per draw call uniform buffers, I currently have two approaches in mind, and they both ...
user avatar
  • 105
2 votes
0 answers
25 views

Should I use common resource bindings across all my shaders in HLSL/D3D12?

Will unaccessed bindings consume cache or bandwidth? I want to improve cache usage by splitting the per-path information in my renderer across different resources, but I also want to keep my binding ...
user avatar
2 votes
1 answer
839 views

Floating Point Operations in Line Drawing Algorithms

When it comes to line drawing, DDA is the simplest and most intuitive algorithm, the core idea being: compute the slope of the line for every increment in x, increment y by the slope However, DDA is ...
user avatar
  • 121
1 vote
1 answer
234 views

How can I control memory for command allocators and command queues in D3D12?

The D3D12 programming guide suggests specific allocation strategies for command queues and allocators, but the creation methods for those objects operate directly on queue/allocator pointers without ...
user avatar
2 votes
1 answer
158 views

What does GPU serialized mean?

With GPU isolation : multiple processes use the single GPU will be serialized, cause OOM easily link https://www.slideshare.net/mobile/Hadoop_Summit/deep-learning-on-yarn-running-distributed-...
user avatar
4 votes
1 answer
355 views

How much does driver quality affect Vulkan and DX12 compared to OpenGL and DX11?

Considering the fact that Vulkan and DX12 delegate most of the memory management / work scheduling tasks to the application itself, how much do drivers affect performance? To put my question into ...
user avatar
  • 279
2 votes
1 answer
2k views

Do I need separate Graphics and Transfer commands?

I was following this tutorial on Vulkan https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer and I decided to do this bit: The buffer copy command requires a queue family that supports transfer ...
user avatar
9 votes
2 answers
2k views

Why are oct trees so much more common than hash tables?

When reading papers I commonly find Oct tree implementations of geometry representations to sort the data. However whenever I think about the problem hash tables seem better overall. Hash tables have ...
user avatar
  • 1,447
1 vote
1 answer
82 views

What objects do get loaded into GDDR?

I currently have a 4K monitor and want to buy a new graphics card. My choice would either be the RTX 2080 or the RTX 2080 Ti. Now I need to know which one I really need. The Ti variant has 12 GB of ...
user avatar
4 votes
0 answers
93 views

Does MRG32k3a compare well with PCG and Xorshift256*?

I've been using standard 32-bit Xorshift in my GPU path-tracer for a while, following Nathan Reed's approach with hashed seeds and decorrelated state. I (finally) discovered today that Xorshift is ...
user avatar
0 votes
2 answers
2k views

Is it possible to emulate Vulkan on a non Vulkan compatible gpu?

I don't think there is much to explain here, since the question is pretty much in the title, but i'll try to explain myself better: My current laptop's gpu does not support Vulkan, so i was wondering ...
user avatar
4 votes
2 answers
1k views

Difference in pixels between different monitors' sizes

If I have an image of x/y resolution and display it on a monitor, does this mean that between a 15-inch monitor and a 42-inch, the same amount of pixels (x/y) will be displayed, only that each pixel ...
user avatar
  • 141