Questions tagged [gpu]
GPU (graphics processing unit), is a specialized processor designed to accelerate the process of building images.
181 questions
0
votes
2
answers
190
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
63
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
598
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
236
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
36
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
324
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
51
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
855
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
197
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 ...
0
votes
1
answer
2k
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
704
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 ...
0
votes
2
answers
10k
views
Low FPS in Unreal engine, but GPU usage is low as well
I am running an Unreal Engine 4 project which has many high quality assets. My computer is fairly strong:
CPU: AMD Ryzen 5 3600 6-Core
GPU: GeForce RTX 3060 SSD: Lexar 500GB
NM610 M.2 NVMe SSD
RAM: 2 ...
0
votes
1
answer
273
views
How to temporarily set additional system environment variable only in 'play' mode inside godot editor?
I'm learning godot with a laptop that has AMD discrete GPU. My OS is Arch Linux so if I want to use discrete GPU I have to set system environment variable ...