🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Newbie Question

Started by
4 comments, last by crazy-vasey 23 years, 10 months ago
What API should I use for programming in linux? http://users.50megs.com/crazyvasey/
Advertisement
SDL. http://www.libsdl.org

After you get more comfortable, I highly suggest checking out the alternatives for yourself, but right now, SDL is professional, has lots of documentation, and is fairly easy, if you have other game programming background.

-benc

Crackpot Productions--
Senior Cracked Pot--
Benc
Crackpot Productions--Senior Cracked Pot--Benc
OK I''ll try that. Is gcc a good compiler?

http://users.50megs.com/crazyvasey/
It sure is.
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
PGCC (Pentium GCC) generates even faster code, but I suggest getting comfortable with the Linux/GCC/SDL development platform before moving to PGCC.

To give you an example of the quality of GCC:
My radiosity processor with a certain scene runs:
- 2m 38sec on Win2k with Visual C++ 6.0, max optimizing
- 2m 04sec on Win2k with Intel C/C++ 4.0, max optimizing
- 2m 05sec on Linux, glibc 2.1, gcc 2.95, max optimizing
- 1m 56sec on Linux, glibc 2.1, pgcc 2.95, max optimizing

This on an AMD Athlon. The run time is just the pure calculation with both a lot of integer work and a lot of floating point. Max optimizing means options set to obtain the fastest results.

Not bad for a free compiler, eh?

DaBit.
That is faster but have you taken into account the slowdown caused by windows bloated nature? Win2K is supposed to pretty slow.

I''ve used gcc before with dgjpp but I prefer Borland C++. That''s why I asked.

http://users.50megs.com/crazyvasey/

This topic is closed to new replies.

Advertisement