Processing complexity question

Question

So, I am planning to write a 2D game just on winAPI and StretchDIBits (C++), planning to write my own alpha blending, simple(at least) "shaders", using mouse for interacting with ingame menus and objects, multiple entities, maaaaaybe dynamic lightning. Why? For challenge, probably, to learn something new.

So the question is, how much optimisation would it be needing and if it is at all possible to avoid GPU programming/run such programm without GPU?

And also if possible, any insight on what winAPI uses to process sound? Any easy ways?(except not using winAPI)

Thank you!

Edit: winAPI would be used only for inputs, sound output, game window management, such as resize, StretchDIBits to put pixels in that window, anything else would work as blackbox. Ah, for why question - also portfolio

Posted Mar 10, 2022, 12:08 AM UTC · edited

02
khedoros•

I've got this book from 2003, which describes building a software render with lighting, shadows, and I think transparency. Those were expected to run on computers of the time at reasonable resolutions (don't remember if it was as low as 640x480 or higher like 1024x768).

But I'd suspect that you won't have any trouble running a reasonable software renderer on a modern computer.

2
Rooted_OneOP•

Oh, thank you for the book!

The question itself was born arter I wrote some fractals on same basis, it was getting quite laggy, when you dive deep enough, even with assembly inserts. I hope, it wont give me same trouble here. Thank you for the answer!

1