Questions tagged [memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14 votes
4 answers
778 views

How can I raytrace a scene that does not fit into memory?

If the scene to be raytraced cannot be stored in memory, then without adding more RAM to the machine it seems unrealistic to render it in a practical time span, due to the need to load different parts ...
trichoplax is on Codidact now's user avatar
14 votes
2 answers
467 views

Why smoothed meshes in 3D studio end up with the same number of vertices/triangles? How then can they be smoothed with the same geometry?

I am trying to understand why meshes that are smoothed in 3D studio (Modifiers/Smoother) end up having the same amount of vertices/faces before or after that process, as well as the exact same ...
Louis15's user avatar
  • 273
12 votes
2 answers
2k views

Could a hexagonal pixel array store an image more efficiently?

Most computer monitors and televisions have a rectangular array of pixels arranged on a square (or nearly square) lattice. Would a hexagonal lattice give better image quality for the same number of ...
trichoplax is on Codidact now's user avatar
6 votes
1 answer
147 views

Can meshes be reused in raytracing?

In rasterization, at least in the context of game development, it is a common to have many instances of the same 3D object in a scene (think many identical rocks in different sizes/positions/rotations)...
Ilya's user avatar
  • 75
6 votes
1 answer
183 views

Where is the shown display image actually stored and accessed?

In a modern day desktop or mobile computer, you got the CPU, the RAM, the GPU and it's own video RAM. When a modern OS renderes an image to the screen, where is the actual image data for that screen ...
salbeira's user avatar
  • 303
4 votes
2 answers
595 views

Should you measure mesh complexity in triangles or vertices?

I have seen people using either vertices or triangles as a quick heuristic to estimate mesh memory usage and mesh rendering time. I always thought vertices were better, because the number of vertices ...
Makogan's user avatar
  • 1,696
4 votes
1 answer
3k views

Why do I need memory barrier when doing atomic operations?

I am reading the OpenGL SuperBible 7th edition which covers atomic operations on memory specifically within shader storage blocks. It says (about atomic operations): If two invocations access the ...
Startec's user avatar
  • 781
4 votes
1 answer
1k views

Register pressure in Compute Shader

I'm in the process of writing a Ray Tracer using DirectCompute / HLSL. First, eye rays are generated (one per pixel). Then, rays are traced, shaded and reflected in a loop. Also, shadow rays for each ...
David Kuri's user avatar
  • 2,293
4 votes
1 answer
2k views

Compute shaders: one-time-only versus persistent buffers

When using a Compute Shader, is it possible to keep a buffer in the GPU memory during the whole run-time duration of the application, so whenever the original Compute Shader or other Compute Shaders ...
Brianna Szvenska's user avatar
4 votes
1 answer
372 views

GDDR5 vs. DDR3 for learning GPU programming on a limited budget?

[Please (kindly) let me know if this is not the place for this question] I'm hoping to learn about GPU programming, but as a college student, I've a quite limited budget. I'm wondering whether I ...
Ben Sandeen's user avatar
3 votes
3 answers
233 views

Dealing with wasted space when using SIMD on CPU for vector maths

I've been getting interested in SIMD programming on CPU using SSE recently, but I'm a complete noob on the subject. I found this article describing how to make an efficient float3 type using the ...
russ's user avatar
  • 2,392
3 votes
2 answers
2k views

How can I chase down VRAM & GTT memory leaks?

Problem. I have inherited a large C++ 3D graphics codebase (with some shader code). The program runs for about 1-5 minutes before crashing. Problem Data. Using system tools, one can see a sharp rise ...
George's user avatar
  • 253
3 votes
1 answer
1k views

Do I need to use glMemoryBarrier with atomic counters?

The OpenGL SuperBible 7th Edition points out that the glMemoryBarrier() function supports a bit specifically for synchronizing access to atomic counters with other parts of the OpenGL pipeline ...
Startec's user avatar
  • 781
3 votes
1 answer
640 views

Does this type of memory-mapping for a display exist?

Most information about memory mapped displays on the net are about those in which there is essentially a location in main memory for each pixel on the display. A hypothetical 1024 x 512 display would ...
Cyber99's user avatar
  • 31
3 votes
1 answer
318 views

D3D11 Map forces synchronization

Is it possible that a call to ID3D11DeviceContext::Map on a dynamic vertex buffer with D3D11_MAP_WRITE_DISCARD causes my ...
leone ruggiero's user avatar
3 votes
0 answers
64 views

Intel UHD extremely slow copy operations

Is there a way to make copy operations such as CopyResurce(d3d11) and glBlitFramebuffer(ogl) on multi-sample resources faster ...
leone ruggiero's user avatar
2 votes
1 answer
1k views

In what scenarios and how does GL_ARB_buffer_storage help performance?

The Dolphin emulator for GameCube/Wii has the ability to use the ARB_buffer_storage (or EXT_buffer_storage for GLES) to improve rendering performance. From the extension's description, a GPU driver ...
jdonald's user avatar
  • 127
2 votes
1 answer
673 views

Zero-copy texture reading from CPU memory

The Intel 740 AGP graphics card read textures directly from system RAM, using VRAM exclusively for depth buffers and the framebuffer. This has the effect of saving video RAM, and it could be ...
novice's user avatar
  • 163
2 votes
1 answer
129 views

Handling GPU resource management

I recently finished the base implementation of a DX12 rederer and I started to think in ways of improving the performance. I think that one problem that my implementation has, is memory fragmentation, ...
Nacho's user avatar
  • 110
2 votes
2 answers
607 views

What does the z-buffer look like in memory?

I am an amateur game developer, and I've been reading a lot on how computer graphics rendering works lately. I was reading on the Z-buffer recently and I can't quite seem to be able to wrap my head ...
Carmo's user avatar
  • 23
2 votes
1 answer
442 views

Is it possible to bind dynamic texture samplers to a shader in DX12?

So usually texture samplers are set directly in the D3D12_ROOT_SIGNATURE_DESC structure in DX12, at least that's how I've been setting them. I was wondering if it's ...
mbl's user avatar
  • 291
2 votes
0 answers
371 views

Corrupt values when writing and reading from the same RWTexture2D in HLSL/DirectX?

I'm playing around with DirectX 12 ray tracing, and I'm trying to read and write data to a 32-bit RGBA floating point RWTexture2DArray within a DirectX 12 HLSL shader. I'm getting weird corruption/...
b1skit's user avatar
  • 161
2 votes
0 answers
1k views

Groupshared memory and parallel reduction over multiple kernel dispatch

I am doing some parallel reduction and mostly following these nVidia slides. However they are not very detailed in places or I might be missing/misunderstanding something. Edit 2: While I figured ...
AverageGatsby's user avatar
1 vote
3 answers
126 views

How can an OpenGL visualization run for weeks?

For an art project, I need to make an OpenGL visualization run for at least 4 weeks. Is this possible? I can pretty much choose the rest of the hardware and software.
Holger Ludvigsen's user avatar
1 vote
1 answer
980 views

memory consumption for a true color frame buffer

What is the memory consumption for a true color frame buffer (with double buffering) on an XGA display? ("XGA" = 1024 x 768 pixels) How can I calculate this?
user5345's user avatar
1 vote
1 answer
304 views

How can I control memory for command allocators and command queues in D3D12?

The D3D12 programming guide suggests specific allocation strategies for command queues and allocators, but the creation methods for those objects operate directly on queue/allocator pointers without ...
Paul Ferris's user avatar
1 vote
1 answer
91 views

What objects do get loaded into GDDR?

I currently have a 4K monitor and want to buy a new graphics card. My choice would either be the RTX 2080 or the RTX 2080 Ti. Now I need to know which one I really need. The Ti variant has 12 GB of ...
Amon Bune's user avatar
1 vote
0 answers
59 views

Why cache working set per multiprocessor for texture memory in Nvidia has a variable size?

I saw it here https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#features-and-technical-specifications__technical-specifications-per-compute-capability , I don't know if it also happens ...
alvaro9650's user avatar
0 votes
1 answer
861 views

What is the typical use case for rendering to an image through imageStore?

The typical scenario for using a texture would simply be: ...
Makogan's user avatar
  • 1,696
0 votes
1 answer
65 views

Does OpenGL allocate on glBegin/glEnd?

You can enclose arbitrary amount of vertices within glBegin/glEnd statements. Does OpenGL limit the number of vertices you create or it allocates memory for more?
user avatar
0 votes
1 answer
59 views

How big is a multi-sampled FBO than a regular FBO with the same resolution?

Is it proportional to the samples count? Whats the performance difference between binding a multi-sampler and a regular sampler?
Danielhu's user avatar
  • 103
0 votes
1 answer
108 views

Force int array to compact memory

I have following structure which i use as an uniform buffer object. ...
MrRabbit's user avatar