Questions tagged [gpu]

Questions related to the massively parallel computing units targeting effective computer graphics in modern machines.

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

What are some ways of modelling data for GPU side where e.g. OOP is not available?

I'm currently on a journey of writing a basic path-tracer. My current implementation uses fragment shaders to run the path tracing algorithm per pixel. I am at the point where I need to start ...
0 votes
1 answer
35 views

Who does the actual drawing when I call openGL draw API?

I am sorry if the question is too basic but I am just starting with the graphics library. My question is when I invoke draw API in openGL who does the actual job of drawing/coloring of the actual ...
0 votes
1 answer
121 views

Wouldn't it be better if the vertex shaders and Z-Buffer were on the CPU instead of the GPU?

Wouldn't it be better if instead of unified shaders on the GPU you had separate pixels and vertex shaders again and the vertex shaders together with the Z-buffer were on the CPU die instead of on the ...
3 votes
2 answers
359 views

What were the benefits of quads used by Nvidia's NV1 over tri based rendering?

What were the benefits of primitive quadrilateral rendering used by Nvidia's NV1 graphic chip over triangle based rendering? And what was the reason why Nvidia followed this approach?
0 votes
0 answers
31 views

What's with this green color ( #004D00 )

I've noticed this shade of green a few different times when I experience graphical errors on computers. most recently when I had to disable / re-enable my GPU to fix a error with how videos were being ...
0 votes
0 answers
106 views

What are all of the registers inside the GPU called?

I have a GeForce GTX 980 GPU and wanted to know their register names and what they do so I can code my game in NASM for the physics, logic and communicating with the GPU Assembler. However, I haven't ...
1 vote
2 answers
591 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 ...
0 votes
0 answers
37 views

AMD GPU specific triangles disappearing by subsequent draw calls in same frame

we have a Windows/DirectX11 2D Renderer that paints textured triangles to the screen from back to front. There is no face-culling or depth test activated. Now on AMD GPUs it happens randomly that an ...
0 votes
0 answers
62 views

"Smoothing out" raymarched reflections

I am writing a program to display 3-dimensional lattices (honeycombs) using raymarching and reflections. I made a simple cubic honeycomb to start. The usual method is to use a repetition operator, by ...
0 votes
1 answer
93 views

What is the theory behind a CPU being able to do everything a GPU can? Can I have something GPU based that can not run on a CPU?

GPUs have a smaller instruction set than a CPU does, but that means that from an architecture POV all the instructions in a GPU have a combination of slower CPU equivalent instructions?
0 votes
0 answers
97 views

How many rays can one RT core calculate simultaneously?

I have noticed that all GeForce RTX cards, without exception, have an equal number of RT cores as they have streaming multiprocessors (SM). From this fact I assume that each RT core is associated with ...
6 votes
1 answer
207 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 ...
3 votes
2 answers
7k 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 ...
4 votes
2 answers
1k views

What is the difference between a "meshlet" and just a small mesh?

Obviously, conceptually, a meshlet is just a small mesh. But what is the reason for making the distinction then? I'm assuming it has to do with how they are implemented. In a meshlet architecture, ...
5 votes
1 answer
2k 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 ...
1 vote
0 answers
35 views

What motherboard spec should i look for using 4 displays

I am not sure if i am on the right forum. Let me know where to go if i'm wrong. I have an ASUS mATX motherboard H110M2 and PNY Quardro P620. Initially I put it into a mini tower which only had a 450W ...
0 votes
1 answer
177 views

Am I risking damaging my GPU?

I have written a relatively simple interactive C program using OpenGL 4.4 with a vertex shader and a fragment shader, running in the CodeBlocks IDE on Windows. I included an FPS counter basically as ...
10 votes
6 answers
7k views

Why can't we have hardware-specific graphics APIs?

Right now, if you want to use a GPU, you have to do it through graphics APIs like DirectX or Vulkan. These APIs are meant to be hardware-independent, but more often than not, they are tied to a ...
2 votes
2 answers
7k views

Can I use my phone's gpu as an external gpu for my laptop?

My phone is Sony Xperia XZ1 Compact which has Adreno 540 as gpu. My laptop's gpu is NVIDIA GeForce 940MX 4GB which seems to be much worse than my phone's gpu. My PC's OS is Ubuntu 16.04.
0 votes
0 answers
57 views

Why use buffer streaming instead of collecting data on CPU and uploading to GPU all at once

Say I have a couple of meshes that I want to reupload to GPU for each frame. I can do this by generating a single array from all the meshes on CPU and then uploading to GPU (ex with ...
2 votes
1 answer
266 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) ...
0 votes
0 answers
88 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: ...
3 votes
2 answers
3k 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 ...
0 votes
0 answers
118 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?
1 vote
1 answer
2k 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 (...
0 votes
1 answer
295 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 ...
1 vote
1 answer
986 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 ...
1 vote
1 answer
173 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 ...
1 vote
1 answer
534 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 ...
4 votes
1 answer
171 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 ...
15 votes
2 answers
22k views

How many polygons in a scene can modern hardware reach while maintaining realtime, and how to get there? [closed]

A fairly basic, in some ways, question, but one that many people, myself included, don't really know the answer to. GPU manufacturers often cite extremely high numbers, and the spread between polygon ...
2 votes
2 answers
2k 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 ...
5 votes
1 answer
4k 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 "...
2 votes
2 answers
457 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 ...
0 votes
1 answer
76 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 ...
0 votes
3 answers
234 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 ...
0 votes
1 answer
172 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 ...
0 votes
1 answer
91 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 ...
1 vote
0 answers
123 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. ...
11 votes
1 answer
1k views

Why do adjacent triangles never overlap when rasterized?

Apologies for the following noob question, it's just I can't find a satisfactory answer anywhere... When I render a simple axis-aligned quad made up of two triangles, I don't understand why there's ...
0 votes
1 answer
116 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 ...
3 votes
3 answers
729 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, ...
1 vote
1 answer
151 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 ...
22 votes
4 answers
24k views

What does GPU assembly look like?

I have played around with CPU assembly programming like Nasm, Tasm or Masm, but I'm really curious to know how GPU works now. However, i'm quite confused when I look on internet. I've heard about Cuda ...
0 votes
0 answers
102 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 ...
4 votes
5 answers
1k views

Cloud based VR would be the future?

According to the following assumptions, I think Cloud based VR would be the future: 1) Real world scene rendering needs ray tracing or other complex computing graphics technologies. It needs a lot of ...
1 vote
0 answers
53 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 ...
1 vote
1 answer
100 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-...
2 votes
0 answers
27 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 ...
0 votes
0 answers
355 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 ...