Questions tagged [efficiency]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
31 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.
2
votes
1answer
486 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 ...
5
votes
1answer
405 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 ...
7
votes
1answer
92 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 ...
6
votes
1answer
565 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 ...
6
votes
1answer
506 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 ...