Questions tagged [efficiency]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
74 views

"Interleaved rendering" in fragment shader

Intro I'm trying to render multi-channel images (more than 4 channels, for the purposes of feeding it to a Neural Network). Since OpenGL doesn't support it natively, I have multiple 4-channel render ...
user avatar
1 vote
1 answer
85 views

Is it possible to decode and play e.g. 60fps video as 30fps, if computer is too slow for 60fps?

I am wondering this, as e.g. YouTube offers some videos 60fps, but computer may be too slow to play them.
user avatar
  • 121
2 votes
1 answer
843 views

Floating Point Operations in Line Drawing Algorithms

When it comes to line drawing, DDA is the simplest and most intuitive algorithm, the core idea being: compute the slope of the line for every increment in x, increment y by the slope However, DDA is ...
user avatar
  • 121
5 votes
1 answer
804 views

Efficiently rendering sprites

In order to naïvely render sprites, you can send single rectangles with their position, rotation, size, and texture. This is very easy, but given that reducing state changes, draw calls, and data ...
user avatar
7 votes
1 answer
127 views

Cost of parameter passing in webgl pixel shaders?

In a webgl pixel shader, all functions are inlined as i understand it, however you can have parameters that are marked as in versus being inout meaning that their value can change but the value won't ...
user avatar
  • 7,361
6 votes
2 answers
963 views

MSI GTX 950 2GD5T triangles per second

A friend got an MSI GTX 950 2GD5T graphics card for xmas. I said "yeah, graphics cards are super fast now, that thing probably processes 2 billion triangles per second". Then I tried to look it up to ...
user avatar
  • 163
6 votes
1 answer
626 views

Speeding up convergence: am I reinventing the wheel?

I'm trying to learn about raytracing by implementing things in Python 3. I know this is always going to be slower than something like C++, and I know the speed could also be improved by using GPU ...
user avatar
  • 5,902