gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

OffTopic > Your Personal Coding Nemesis?

#155912 - silent_code - Mon May 05, 2008 4:23 pm

OH NOES! i have accidentally posted this into hw instead of offtopic! could a mod please correct this?!



as you pobably have seen (or not, doesn't matter), i have asked about the windows system menu icon not showing, despite the fact, that i've tried every possible way to let it be displayed...

but there's more that i hate about win32 window handling (in mingw gcc)...

i probably have to rewrite my whole window handling system... going to fullscreen and back during runtime is a pain and will often fail, multisampling will refuse to work, despite the fact that i have everything setup just RIGHT. it won't do the SetPixelFormat, although the format is perfectly valid (tested with another application) ... damn it!

plus, giving the user (which includes me) maximum flexibility at minimum coding effort by making everything "just work" with different window types makes it even more complex given all the errors the API will generate.

during all the development time i probably haven't spent as much time on any other sub system as on the windowing system (with several rewrites and design changes - every time i got something fixed but never for all situations.)

it's back to pen and paper, i guess.
sad panda. very sad panda.

so hereby, i name it my "Personal Coding Nemesis"!

what is your PCN?


Last edited by silent_code on Tue May 06, 2008 12:25 am; edited 2 times in total

#155916 - sonny_jim - Mon May 05, 2008 5:11 pm

I would of thought Microsoft does undocumented changes to ensure their compiler works better than mingw gcc, but then I think everything is a conspiracy :-)

#155943 - DekuTree64 - Tue May 06, 2008 12:29 am

I think mine would have to be compression encoders. Always going in circles trying to find out what detail I missed, or what the target application is expecting that the format specification doesn't mention.

I actually don't mind the windows C-style API, at least for making dialog boxes and such. Now MFC is another story, and DirectX is also wonderfully convoluted pain in the neck.
Also, trying to make GDI do animated pixel graphics is not the best idea, which it sounds like you might be doing since you mentioned SetPixelFormat and fullscreen. I prefer to make an OpenGL window, draw stuff in a raw memory buffer in whatever format I like, and then render a single quad with that as the texture. Super easy, and actually runs much faster than memcopying the buffer straight to VRAM in DirectDraw.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#155945 - silent_code - Tue May 06, 2008 12:38 am

<lol> yeah, only, i'm doing openGL! ;^D
direct-what you say? X^D

i think, i'm actually allergic to any kind of library that is not either openGL (and AL) or open source (libnds). it gives me the creeps!

well, compression, precious compression! :^D