Slashdot Mirror


SDL Has Been Ported to Sony PS2

JigSaw writes: "SDL, the open source answer to DirectX, is a well-known cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. Sam Lantiga, the maintainer and SDL project leader, announced today on the SDL mailing list, that he ported the library to Playstation2 and it will allow to write and run SDL games (open source or commercial, as SDL is LGPL) on the Linux port for the PS2. Great to see Linux to become the source for a whole bunch of free SDL games (some of them with commercial-level quality), easily recompiled for the PS2 and run them without having to spend $49 USD for each game. This release will be even more significant in the near future, as SONY is planning to release the broadband adapter add-on, which will enable small developers (and even companies) to release free or shareware games, downloadable in binary or source format (most SDL games are known to have small sizes) from the web, and hop, to your TV!"

22 of 89 comments (clear)

  1. BTW: Did you know... by root_42 · · Score: 4, Interesting

    ...that Sam Lantiga left Lokigames and is now working for Blizzard? But he is still developing SDL, as it seems. Look here for more details.

    --
    [--- PGP key and more on http://www.root42.de ---]
  2. Re:But does it use all the dedicated hardware? by slouken · · Score: 2, Informative

    2D with SDL on the PlayStation 2 uses DMA to transfer images to the screen, and is fairly fast. SDL also takes advantage of hardware YUV -> RGB conversion and hardware image scaling.

    As for 3D, SDL just provides an interface to the native OpenGL implementation. There is a port of Mesa to the PS2, but as of the Public Beta, there were lots of features which hadn't been tested and some things which didn't work due to the way PS2 hardware works.

    If you want to use any of the other hardware, like the custom vector units, you'll have to program them yourself.

    In general, SDL speed is pretty good on the PlayStation 2. However, in my experience, games which require a lot of memory or lots of floating point will be fairly slow.

    SDL isn't a magic wand, you still have to take the advantages and disadvantages of your target platforms into consideration for the best performance of your game.

  3. Re:Linux for end users? by DeadMeat+(TM) · · Score: 2
    Realistically, I have no problem with this - maybe that $200 kicks the price point above where they will be making a loss (at least when they drop the price this coming holiday season). That way, Sony can keep the PS2 in market, even if people aren't buying licensed games.

    Good point -- I had forgotten about the whole selling the hardware at a loss issue. Still, to the average gamer, who probably knows or cares little about free or Free games, $200 is an awfully high price to justify getting the ability to play SDL games.

    Sure, the Cool Factor is definitely there, but the $200 entry fee would probably be too high for anybody but die-hard geeks who want to play their SDL games on a TV mainly for the hell of it, which is a far cry from small developers being able to reach millions of gamers like some people had hoped for.

  4. Re:Commercial quality? by Error27 · · Score: 2

    >>when for $20 used you can get a decent copy of Final Fantasy for PS?

    The amazon.com version of ff9 costs $40. But thats an exact copy. For a merely decent copy I would expect to pay $7-$10 and not a penny more.

  5. Linux for end users? by DeadMeat+(TM) · · Score: 2
    This is great news, except I can see one problem with it. The CNet article implies the only way to get Linux to run on the PS2 is to buy the $200 development kit -- since the Linux runtimes are proprietary, and presumably not freely distributable, this could definitely hamper the ability to play SDL games for most people. Obviously nobody can stop developers from circulating the kernel, but since the specs on the hardware are closed I'm assuming SDL has been built on top of these runtimes, and thus depends on them.

    Does anybody have information about whether or not developers will be able to redistribute enough of the Linux-based runtimes to make this feasible? Actual quotes from the license agreement(s) would be nice. (Or has the porter found some way around using the binary-only stuff?)

    1. Re:Linux for end users? by JabberWokky · · Score: 4, Interesting
      The CNet article implies the only way to get Linux to run on the PS2 is to buy the $200 development kit

      Realistically, I have no problem with this - maybe that $200 kicks the price point above where they will be making a loss (at least when they drop the price this coming holiday season). That way, Sony can keep the PS2 in market, even if people aren't buying licensed games.

      In other words, you have a choice - buy the PS2 below cost, and play only licensed games (which kick back to Sony, making up the difference), or shell out $200 and play free (both beer and speech) games. And neither will make Sony give up on the PS2 as unprofitable.

      Now, as to what the *actual* break even price for Sony is - now that's a different story. I imagine that they are making a profit on the actual unit (not counting initial R&D) at the moment; that may change when the PS2 price drops way down in the next few years.

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
  6. SDL for Amiga by Svenne · · Score: 2, Offtopic

    Have you tried the Aminet? It's right here.

    --

    Slagborr
  7. fantastic but sony might not like it by Anonymous Coward · · Score: 3, Interesting

    This is great news of course, but how will sony react? Hundreds of free games being released will hurt commercial sales of PS2 games, especially if someone ports the SDL versions of MAME, SNES9X, and that gbadvance emulator.

    1. Re:fantastic but sony might not like it by Ian+Schmidt · · Score: 2

      The problem is the PS2 has only a 294 MHz CPU and very high-latency RAMBUS RAM, so portable emulators will not run well on it. Ones written especially for it in MIPS that take advantage of the on-CPU scratchpad RAM will fare a lot better.

  8. What's this 'open source or commercial' shite? by Nailer · · Score: 2

    Since when are `Open Source' and `commercial' opposites? According to just about everyone, including both the FSF (see their `words to avoid' list) and the Open Source Initiative (dunno where, but Google Is Your Friend) `proprietary' `closed source' or `non-free' is the opposite of Open Source / Free Software.

    Commercialness does not equal being sold for money just like free to air television isn't non-commercial. It is (according to every dictionary I've ever read) to do with the motivation behind producing the work, which in the case of apps like Zope, Red Hat Linux, VideoLAN, and many other projects, is (at least partially) to make money.

    Commercial software is fine and employs alot of people, and its even better for users if its also Open Source.

  9. Commercial quality? by SilentChris · · Score: 4, Insightful
    "Great to see Linux to become the source for a whole bunch of free SDL games (some of them with commercial-level quality)"

    Ahem. *cough* :) Someone's been going to the school of CmdrTaco's all-inclusive non-objective statements. I would hardly call a majority of the SDL games commercial quality. A majority are playful diversions (like minesweeper) and the few that are commercial quality ARE commercial (like Loki's wares).

    Don't get me wrong: I think SDL is a step in the right direction. But are you going to get Joe User to play these games when for $20 used you can get a decent copy of Final Fantasy for PS?

  10. Sony is playing it smart by ioman1 · · Score: 2, Interesting

    I am glad to hear that Sony has decided to go with SDL. I hope that Sony stands a chance with the Xbox, because I would hate to see Microsoft win in another market. We should give Nintendo and Sony our support.

  11. Language bindings by JayKey · · Score: 2, Insightful

    Another cool thing about SDL is that it supports various languages through its bindings. For example I tested the guile/scheme binding a while ago.. the code needed to get things on the screen was only a few lines... sorry to say, but it lacked some features and crashed in my face.. but at least in my mind it would be awefully cool to prototype effect/AI/ ideas etc using SDL and Scheme. Other people may already have some experience using SDL with other interpreted languages?
    -jk
    "Premature optimization is the root of all evil" - Don Knuth

  12. actually... by wct · · Score: 5, Informative

    ...it was ported to the PS/2 with the 1.2.1 release a few weeks ago. The port was done by some Japanese coders. The news here is that Sony has donated a dev platform for further development...so we can all hope Mesa is ported sometime :)

  13. Sony still needs to release Linux for the US PS2 by A+Commentor · · Score: 2, Informative

    So Sony still has not released Linux for the US PS2... So unless you have a Japanese PS2, this won't do you much good yet.

    --

    Looking for any old 8-bit Heathkit/Zenith software/hardware - http://heathkit.garlanger.com

  14. Sign Sony's petition for USA PS2 linux release. by nobodyman · · Score: 3, Interesting

    SDL is nice, but I'd like to avoid getting a devkit via the grey market. SCEA has a poll going to gauge interest in the PS2. Let's get this thing released! --me

  15. What a Sad Commentary! by GroundBounce · · Score: 2

    Linux to become the source for a whole bunch of free SDL games (some of them with commercial-level quality)

    I guess commercial software is still generally higher quality than free software :(

    1. Re:What a Sad Commentary! by Dwonis · · Score: 2

      Um.. For games, yes. There aren't too many free software developers who have the resources of a 10-person crew working full time on a game.

  16. Nonsense by marm · · Score: 2

    The problem is the PS2 has only a 294 MHz CPU and very high-latency RAMBUS RAM, so portable emulators will not run well on it.

    My old Cyrix 166-based PC had a lot less processor power than the PS2, much slower memory (remember 70ns FPM DRAM?) and less of it (only 16MB), quite apart from the fact that it had a video card that is prehistoric by comparison (an S3 Virge).

    Yet it played ~95% of all MAME games absolutely flawlessly, at full speed.

    Portable != Slow, as anyone who has used Linux on a MIPS box will tell you (it runs rings around the MIPS-only IRIX)

    You're not an assembler guru that's feeling hard done by optimizing compilers are you?

  17. Re:Awesome! by Dwonis · · Score: 2

    Actually, most of the games I know are enthusiastic about Linux. Whether they have the skills to administer a Linux system is another story, of course.

  18. Re:Great! by Dwonis · · Score: 2
    Socialism can't coexist with companies.

    What are you talking about? Canada's been a corporosocialist country for quite a while, now. ;-)

  19. Re:Great! by Dwonis · · Score: 2

    The key difference is that nobody forces the GPL on anyone.