2022 Developer Survey is open! Take survey.

Questions tagged [gpgpu]

General purpose graphics processing unit. Allows offloading of parallelizable computational tasks to the GPU.

Filter by
Sorted by
Tagged with
0 votes
0 answers
55 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 ...
user avatar
0 votes
0 answers
27 views

Is it efficient to use OpenCL or CUDA for my on screen rendering instead of OpenGL?

Because I am doing raytracing and OpenGL doesn't really offer the option for raytracing, and I don't want to learn Vulkan. So I was thinking to use OpenCL or CUDA to harness the power of GPU.
user avatar
1 vote
2 answers
304 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 ...
user avatar
1 vote
1 answer
195 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 ...
user avatar
6 votes
0 answers
75 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 ...
user avatar
1 vote
1 answer
126 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 ...
user avatar
  • 29.1k
1 vote
1 answer
579 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 ...
user avatar
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 ...
user avatar
  • 1,673
2 votes
1 answer
633 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 ...
user avatar
  • 2,353
3 votes
1 answer
155 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 ...
user avatar
  • 2,353
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. ...
user avatar
  • 129
1 vote
1 answer
304 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 ...
user avatar
  • 13
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 ...
user avatar
  • 23
5 votes
2 answers
1k 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 ...
user avatar
  • 411
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 ...
user avatar
  • 4,364
4 votes
1 answer
951 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: ...
user avatar
  • 178
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 ...
user avatar
  • 161
4 votes
2 answers
781 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 ...
user avatar
  • 5,571
7 votes
3 answers
4k 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 ...
user avatar
2 votes
1 answer
758 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 - ...
user avatar
4 votes
3 answers
870 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 ...
user avatar
  • 1,001
3 votes
3 answers
843 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. ...
user avatar
  • 1,001
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 ...
user avatar
7 votes
2 answers
817 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 ...
user avatar
  • 201
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
3 votes
1 answer
500 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 ...
user avatar
  • 6,028
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 ...
user avatar
  • 6,028