Questions tagged [gpgpu]
General purpose graphics processing unit. Allows offloading of parallelizable computational tasks to the GPU.
29
questions
0
votes
0
answers
105
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 ...
2
votes
2
answers
668
views
How to evaluate a binary expression tree in HLSL without recursion or a stack?
I'm currently working on a dual contouring implementation for which I want to create procedural terrain based on layers of noise. Both, the terrain generation and the mesh creation via dual contouring ...
1
vote
1
answer
294
views
reading from texture2d resource in directx11
Hi^^ i am trying to read data in resource, which i used to do well without any problems. but suddenly it is not working.
first i made immutable resource that has data in it, which is
...
6
votes
0
answers
77
views
How can I make sure my OpenCL code works correctly on different graphic cards?
I'm testing on adding some OpenCL code in my game, but I only have a single Nvidia card & I'm not sure the code will run normally on other platforms.
Is there any way to make sure my code runs ...
1
vote
1
answer
133
views
How to balance GPU compute usage against render usage?
The GPU's primary purpose, obviously, is to render the scene.
However, if we use compute capabilities on the very same GPU, how do we partitition and control these calls such that they do not ...
1
vote
1
answer
693
views
Synchronization between several glDispatchCompute with same SSBOs
Let's say I have one compute shader A which writes to an SSBO, and then a second compute shader B which reads from the same SSBO.
Do I need to do anything special to ensure that A has finished ...
0
votes
2
answers
2k
views
How do I build a 3D array result set from a compute shader in unity?
I took this right down to the absolute most basic scenario but for some reason I can't get anything back from the GPU when this completes, could someone explain what I am doing wrong ...
Here's my ...
2
votes
1
answer
742
views
(Fat) ray cast with MPR OR GJK?
I know that it's possible to see if a line segment or a swept shape (to make a "fat" line segment) intersects objects using MPR and GJK. Is it possible in those situations to find out the distance ...
3
votes
1
answer
173
views
Are GPU physics implementations branchless?
I've implemented MPR on the CPU and in pixel shaders (long story!) and there seems to be unavoidable conditional loops both to find the starting portal as well as to find the final solution. I know ...
1
vote
2
answers
2k
views
Hundreds or even thousands of "slow" running CPUs emulated on GPU?
Introduction
This question is specific to GPU programming. It's not primarily about the game idea.
However, to better understand the question i will detail what it is i want to achieve in my game.
...
1
vote
1
answer
331
views
Relation between TFLOPS and Threads in a GPU?
What's the relation between Teraflops and Threads in a GPU like GTX Titan X has 7 TFOPS of Compute Performance but how many threads it has ? And Like Xbox and PS4 have 1.32 and 1.84 TFLOPS of compute ...
2
votes
1
answer
5k
views
Passing Input to Compute Shader
I am using D3D11 on D3D10 hardware, trying to get a very simple compute shader to run (my hardware supports cs_4_0).
What is the best way to pass data to the compute shader?
I've seen some samples ...
5
votes
2
answers
2k
views
a flexible data structure for geometries
What data structure would you use to represent meshes that are to be altered (e.g. adding or removing new faces, vertices and edges), and that have to be "studied" in different ways (e.g. finding all ...
10
votes
1
answer
8k
views
Implementing algorithms via compute shaders vs. pipeline shaders
With the availability of compute shaders for both DirectX and OpenGL it's now possible to implement many algorithms without going through the rasterization pipeline and instead use general purpose ...
4
votes
1
answer
1k
views
GPGPU physics & game logic
I'm wondering about gpu accelarated physics after reading about Erwin Coumans presentation on GPU accelerated physics: http://www.gdcvault.com/play/1018185/GPU-Rigid-Body-Rigid-Body
(demo video here: ...
2
votes
1
answer
2k
views
GPGPU Programming using HLSL and XNA
XNA Newbie question:
I'm trying to get the GPU to perform some calculations for me. I'm trying to figure out how to send some data to the GPU, get the GPU to process it, then get the result back. I've ...
4
votes
2
answers
786
views
What is the state of the art of ray tracing on the GPU?
I think ray trace rendering had to be done on the CPU for a long time. But since we have compute shaders in OpenGL 4.3 now, it might be possible to move the computations on the GPU and perform ...
7
votes
3
answers
5k
views
ConsumeStructuredBuffer, what am I doing wrong?
I'm trying to implement the 3rd exercise in chapter 12 of Introduction to 3D Game Programming with DirectX 11, that is:
Implement a Compute Shader to calculate the length of 64 vectors.
Previous ...
2
votes
1
answer
789
views
Using SurfaceFormat.Single and HLSL for GPGPU with XNA
I'm trying to implement a so-called ping-pong technique in XNA; you basically have two RenderTarget2D A and B and at each iteration you use one as texture and the other as target - and vice versa - ...
4
votes
3
answers
874
views
CUDA 4.1 Particle Update
I'm using CUDA 4.1 to parse in the update of my Particle system that I've made with DirectX 10. So far, my update method for the particle systems is 1 line of code within a for loop that makes each ...
3
votes
3
answers
845
views
DirectCompute information
I've been trying to make use of the GPU as part of a project of mine. I've looked into both CUDA and OpenCL, but the lack of information showing you how to introduce these into a project is shocking. ...
1
vote
2
answers
6k
views
How can I program on the GPU in Unity?
In my previous question, I asked about why people don't program on the GPU. Now I am learning about fluid dynamics with this article. They say that it should all be done on the GPU. The game engine ...
7
votes
2
answers
832
views
Using GPU on Silverlight 5 for a Fast Fourier Transform
I've got an audio library for Silverlight that is in need of some acceleration on slower machines. Specifically, this library makes extensive and repeated use of the FFT transform as a part of its ...
16
votes
7
answers
1k
views
Spawning units in a world made by Perlin noise?
There's some issues that I've come across in my Perlin noise-based game. Take a look at the attached screenshot below.
The white areas you see are walls, and the black areas are walkable. The ...
64
votes
10
answers
9k
views
Are there any benefits for using the CPU instead of the GPU?
I've been researching processors and graphics cards, and I discovered that GPUs are way faster than CPUs. I read in this one article, a 2-year-old Nvidia GPU outperformed a 3.2GHz Core I7 Intel ...
13
votes
1
answer
2k
views
Is nVidia's CUDA suited to performing pathfinding calculations?
I want to know if it would be worth executing pathfinding on the GPU (using nVidia's CUDA, or an equivalent) in certain situations, or whether it would be a wasted effort. The situation I imagine ...
6
votes
1
answer
1k
views
Switching between Discrete and Integrated GPUs
I have a machine with two discrete GPUs and one integrated GPU. I can currently switch between them using NVIDIA's software, but I would like the ability to do so within my applications for purposes ...
3
votes
1
answer
503
views
Hashing 3D position into 2D position
I am doing volumetric raycasting and curently working on depth jitter. I have 3D position on ray and want to sample 2D noise texture to jitter the depth.
Function for converting (or hashing) 3D ...
1
vote
1
answer
1k
views
gpgpu vs. physX for physics simulation
First theoretical question. What is better (faster)? Develop your own gpgpu techniques for physics simulation (cloth, fluids, colisions...) or to use PhysX?
(If i say develop i mean implement existing ...