Advertisement

Need for speed

Started by December 27, 2000 03:43 PM
11 comments, last by vidlgon 24 years ago
He does not mention D3D at all just OGL, and I do agree with hime about the stupid posts that say ah just use D3D / OGL to do that. Ok so I''ll shoot my self there...

As for my statement regarding SDL, I downloaded it about a month or three ago, tried a simple program and got 1 FPS, where as the same program written in pure DX had about 60 fps. I had downloaded the most current stable version. Since at the time I was looking into porting something over to Linux I used SDL on the Linux system with a good fps, just the same prog running under windows was very poor. Granted people will get better results than me with SDL, I was looking for something that I coould use to create a demo on both Linux and Windows fast, SDL just did not port very well in my experience.

I have not looked at the source for SDL but I know it''s not a wrapper for the Linux system, but for Windows I thought it would be a simple wrapper, I stand corrected if it is not the case.

As for writing my own wrapper for DX, I think that it was the best thing to do as I have learnt more from that than using CDX / SDL / FastGraf (I''ve only used this under DOS). Also if there is a problem with my wrapper I can find and fix the problem easily, whereas using someone elses wrapper I would have to dig around for a couple of hours to find the error.

I just remembered that CDX has an Iso engine as part of the wrapper. But I do not know how good it is as I stopped using CDX a while back.

When I find my code in tons of trouble,
Friends and colleages come to me,
Speaking words of wisdom:
"Write in C."
When I find my code in tons of trouble,Friends and colleages come to me,Speaking words of wisdom:"Write in C."My Web Site
In my experience you''re right, SDL performs better on Linux than Windows. Now I don''t blame Sam for that, after all he works for Loki.

It seem to have its own routines for many blits (SDL_blit.c, SDL_blit_0.c, SDL_blit_1.c, SDL_blit_A.c, SDL_blit_N.c) so I don''t think this should affect the performance unless it comes with overriden functions for this on Linux, or perhaps even using DirectX directly.

"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album
Advertisement
*yawns*
Just added alpha-blending lights... very experimenal
and SLOW. I get 30-40fps with lights and 80fps without
lights. Damn.... I hate optimizing stuff!
Thanks for your tips everyone!! I''ll post a link to my
crappy engine when I get enough time and motivation to
upload it. But hey, you''ll need linux for this slow
baby.

vidlgon a fweak''n idiot

This topic is closed to new replies.

Advertisement