Questions tagged [gpu]
GPU (graphics processing unit), is a specialized processor designed to accelerate the process of building images.
183 questions
0
votes
2
answers
181
views
Do GPUs re-draw a all of a character's vertices/triangles/fragments every frame?
I'm a beginner in game programming and I want someone to confirm my understanding.
Let's say there's a 3D model for a character in the game. This character is made up of triangles. Each vertex in ...
0
votes
1
answer
150
views
How to efficiently construct model matrices in a vertex shader from a small amount of data, for instanced rendering of many moving 3d game characters
I am trying to efficiently render many 3d game characters: many instances of the same 3d model which can change their positions and z rotations each frame. For reference I'm using OpenGL but this ...
0
votes
2
answers
314
views
How can I efficiently render lots of moving objects in a game?
I'm using OpenGL but this question should apply generally to rendering.
I understand that for efficient rendering in games, you want to minimize communication between the CPU and GPU. This means pre-...
1
vote
1
answer
107
views
Efficiently passing data to the GPU corresponding to a collection of objects
I am beginning to work on a physics system, where there are multiple objects in the world that get rendered. The current approach I am considering consists of pseudo-OOP in C where each object has ...
1
vote
0
answers
881
views
Completely independent dual GPU setup for VR with 100% "SLI efficiency"?
I have a simple (and maybe quite naive) question regarding dual GPU use for Virtual Reality (VR); it nagged me for years now and I couldn't figure out why this can't work, at least in principle:
I ...
1
vote
1
answer
320
views
Is DirectX 12 or lower just an API?
I am programming a game using DirectX 12. Shall it support all GPUs? Or just newer GPUs? What about the version of the Windows OS supported?
What changes when a new DirectX version comes?
0
votes
1
answer
2k
views
Int vs Float, which one is faster for gpu?
My game need to loop through massive amount of data, and the amount of data can increase by a lot depending on world settings set by player. The data is too big for CPU so i need to use GPU for it ...
0
votes
0
answers
51
views
How many divisions does the GPU's texture mapper do in parallel?
Perspective-correct texture mapping requires one division per pixel. Before the advent of GPUs this was a problem because this was quite heavy to do on the CPU (especially back in the days of non-SSE ...
1
vote
1
answer
412
views
Computations in GPU Unity
I've made a fluid simulation using particles in Unity, but now it is painfully slow because all computations are done using the CPU. In order to make it faster, I need to do computations on the GPU, ...
0
votes
0
answers
53
views
Balance load between CPU and GPU [duplicate]
I am making a game with Unreal Engine 5, but it takes more GPU power and the CPU is used much less.
I want to optimize it to use both CPU and GPU so it can be playable on low-end PCs or laptops. Is ...
0
votes
0
answers
1k
views
AsyncGPUReadback.RequestIntoNativeArray - owner has been invalidated
I have the following C# code in Unity version 2022.2.0a12:
...
0
votes
1
answer
988
views
Use of CPU vs. GPU on mobile devices
I was always told that if a task can be parrarelized, I should put it on the GPU for better performance. Although this is defenetly true for computer GPUs, I was wondering if the mobile GPUs were so ...
0
votes
0
answers
235
views
Is it possible to use hardware acceleration in OpenCL
I built a small game engine using OpenCL and SDL2 but it's not running really fast compare to Vulkan and OpenGL. I wrote rasterization code, but when I did some research Vulkan and OpenGL use hardware ...
1
vote
1
answer
3k
views
Why do we use GLSL(Shader) instead of CUDA?
I'm meaning GLSL and CUDA both utilize GPU to their maximum power and in some cases, I heard CUDA runs faster on Nvidia graphic card. So my question is why don't we use CUDA more often for GPU graphic ...
1
vote
1
answer
754
views
GPU Instanced Transparent Mesh Not Rendering
I'm trying to render a bunch of clouds via gpu instancing. This works perfectly fine with the default HDRP Lit Shader, and I get the following result:
However, as soon as I change the surface type ...