PowerSDL 13.0
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I have finally uploaded new version of powersdl to Aminet and to my MorphUp repository (http://www.lehtoranta.net/morphup/index.pmi).

    Main changes are:
    - MorphOS 2 or MorphOS 1 with Update Pack #1 required
    - Fixed corrupted graphics in LGeneral game (and maybe more)
    - Fixed gfx problem in UAE
    - Fixed other potential gfx problems
    - Most SDL sublibraries are now AltiVec accelerated
    - Updated powersdl_image.library to sdl_image 1.2.7
    - Added smpeg.library

    The Update Pack #1 for MorphOS 1 is required because SDL is now using new MorphOS 2 libraries. With those new libraries libraries are about 1MB smaller :-) Enjoy!
    1 + 1 = 3 with very large values of 1
  • »20.02.09 - 22:34
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    AyoS
    Posts: 410 from 2003/8/13
    From: West Palm Beac...
    Great Work... Thanks for the Update!!
  • »20.02.09 - 22:56
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 423 from 2005/4/9
    From: magyarorszag/h...
    hi!

    thx for the new release!
    unfortunatley i think i've already found a problem with it:
    i wanted to try an sdl game quickly, the first one i started was x-pired - and it has corrputed gfx (ie. no gfx at all) and a bunch of cli errors: it cant load any of the .bmp gfx data. im sure that with psdl 12.1 this x-pired game worked.
    other few games i've tried worked fine only this with the .bmp gfx has failed.
    thought i let you know:)
    DEAD pegII/G4@1000.1gb ram.radeon 9200pro
    240 gigz hd.nec dvdrw.MorphOS 2.4 DEAD
    -=-=-=-
    amiga1200T.blizzardppc@180/040@25.96megz ram
    -=-=-=-=-
    zx.spectrum@3.5
  • »21.02.09 - 10:58
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    ThePlayer
    Posts: 1069 from 2003/3/24
    From: Hamburg/Germany
    Battle for Wesnoth has some GFX errors.
    PowerMac G5 Quad 2.5 running UWQHD Resolution
  • »21.02.09 - 18:01
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Can you post screenshot from Wesnoth gfx errors?
    1 + 1 = 3 with very large values of 1
  • »21.02.09 - 20:17
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I am going to try x-pired tomorrow. You dont know any other game with similar problems?
    1 + 1 = 3 with very large values of 1
  • »21.02.09 - 20:19
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    ThePlayer
    Posts: 1069 from 2003/3/24
    From: Hamburg/Germany
    On the right side of the Picture in the Menubar some gfx quircks.
    PowerMac G5 Quad 2.5 running UWQHD Resolution
  • »21.02.09 - 20:53
    Profile
  • HAK
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 224 from 2003/2/24
    From: Austria, Vienna
    Hi,


    Just did a quick check with X-pired (as I think he ment my port).

    Getting error messages when trying to load Windows Bitmap gfx.
    JPEGs are OK.


    Bye HAK
  • »22.02.09 - 00:01
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Daff
    Posts: 243 from 2003/4/5
    Itix : UAE now can runs on a 32 bit screen... but it's very slow. With a very old version of PowerSDL, we was capable to lunch UAE quite smoothly in 32 bit screen. Can you enabled 8 bit in SDL ? Or enabled 16 bit screen when we launch UAE from a 24/32 bit Ambient screen ?

    [ Edited by Daff on 2009/2/22 8:06 ]
    Obligement - L'Amiga au maximum
    http://obligement.free.fr
  • »22.02.09 - 06:56
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Quote:


    With a very old version of PowerSDL, we was capable to lunch UAE quite smoothly in 32 bit screen.



    I dont know if that is possible. Due to a bug in UAE screen handling I am forced to update screen more often than necessary. But maybe I have introduced new bottleneck in PSDL, I check this out later. However are you sure that it is just that old PSDL version which was faster and your config (gfx card, monitor) didnt change?

    Quote:


    Can you enabled 8 bit in SDL ? Or enabled 16 bit screen when we launch UAE from a 24/32 bit Ambient screen ?



    I wrote about this to Drummond years ago but he never added an option to use 8bit screens. E-UAE does not specify bit depth for UAE screen and therefore SDL must choose default setting which is same as Ambient screen depth. If I changed default setting to 8bit then UAE would run at optimal speed but other SDL applications could stop working.

    I probably add new setting to SDLPrefs to force 8bit screendepth for applications like UAE. Or maybe even application specific settings.
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 07:54
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Daff
    Posts: 243 from 2003/4/5
    -> However are you sure that it is just that old PSDL version which was faster and your config (gfx card, monitor) didnt change?

    Itix : can you upload somewhere the 11.x or 12.0 version of PSDL ? I will try and see which version is the faster in 32 bit screen with UAE.
    Obligement - L'Amiga au maximum
    http://obligement.free.fr
  • »22.02.09 - 09:27
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Please remember to include updated SDL_gfx in 13.1... ;)


    - CISC
  • »22.02.09 - 09:45
    Profile
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    Thanks for update:
    dosbox0.72 which crashed badly at start with previous powersdl version now works but is slow
    http://brain.umcs.lublin.pl/~rzookol/download/dosbox.lha
    (maybe i did something wrong during compilation)

    but dosbox from aminet crashed and my game (written long time ago but never crashed until this version) crashes also
    http://aminet.net/game/board/sdl_football.lha
  • »22.02.09 - 16:07
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    There is a bug in sdl_image which is triggered by AltiVec optimisations in MorphOS. And only in MorphOS because PowerSDL aligns SW surfaces for AltiVec.

    I uploaded powersdl_image.library V9.4 for testing:
    http://www.lehtoranta.net/powersdl_image.lha

    Problems with BMP graphics are now gone.
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 17:29
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    @Daff

    I dont have old archives anymore... I will look if I got some backups somewhere but they are probably gone.

    @CISC

    I wont ;-)
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 17:31
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    @zukow

    I tried your game here and it didnt crash. What is your system setup? Any chances to have a log?

    Btw I see gfx corruption at bottom when I have won the game (blinking text which I can not read). Looks like another case where AltiVec alignment breaks SDL... (same with Wesnoth).
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 17:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Motosampy
    Posts: 199 from 2004/8/14
    From: Järvenp&a...
    Pixel gfx sw works better than ever now !

    (Have to mention that I have a G3)
  • »22.02.09 - 17:57
    Profile
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    I have G4 ad morphos 2.2
    With http://www.lehtoranta.net/powersdl_image.lha my game runs ok (except that corupted gfx).

    [ Edited by zukow on 2009/2/22 19:44 ]
  • »22.02.09 - 18:42
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I wonder if gfx corruption is coming from your game or from SDL. Are you using surface->pitch anywhere in your game? Poking or peeking into SW surfaces using surface->w as modulo?

    Since this is 2nd game having problem with AltiVec alignment there is now small chance this problem is in PSDL. I really hope this problem is in SDL...
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 18:52
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Quote:


    dosbox0.72 which crashed badly at start with previous powersdl version now works but is slow
    http://brain.umcs.lublin.pl/~rzookol/download/dosbox.lha
    (maybe i did something wrong during compilation)



    Oh btw... is it slow always or just in fullscreen mode?

    And how do you define slowness? It feels "ok" here. But then I dont use it very often.


    [ Edited by itix on 2009/2/22 21:06 ]
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 18:58
    Profile
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    i don't directly peek/poke into/form surface. Only plain SDL_BlitSurface

    struct font load_font(char *name)
    {
    FILE *tmp;
    struct font czcionka;
    char nazwa_czcionki[32];

    if((tmp=fopen(name, "r")))
    {
    fscanf(tmp,"%s %d %d %c %c",nazwa_czcionki, &czcionka.szer,&czcionka.wys, &czcionka.start, &czcionka.end);

    czcionka.fontmap=SDL_DisplayFormat(IMG_Load(nazwa_czcionki));

    SDL_SetColorKey(czcionka.fontmap,SDL_SRCCOLORKEY,czarny);

    fclose(tmp);

    }
    else
    puts("Blad z czcionka");

    return czcionka;

    }

    inline void rys_char(SDL_Surface *bitmapa, struct font czcionka, int x, int y, char znak)
    {
    SDL_Rect from, to;

    from.x=czcionka.szer*(znak-czcionka.start);
    from.y=0;
    from.h=czcionka.wys;
    from.w=czcionka.szer;

    to.x=x;
    to.y=y;
    to.h=czcionka.wys;
    to.w=czcionka.szer;


    SDL_BlitSurface(czcionka.fontmap,&from, bitmapa,&to);
    SDL_UpdateRects(bitmapa,1,&to);

    }

    void napis(SDL_Surface *bitmapa, struct font czcionka, int x, int y, char *znaki)
    {
    for(; *znaki; *znaki++)
    if(*znaki>=czcionka.start && *znaki<=czcionka.end)
    {
    rys_char(bitmapa,czcionka, x, y , *znaki);
    x +=czcionka.szer;
    }
    else
    if(*znaki==' ')
    x +=czcionka.szer;

    }

    This font is small 8x8 (taken form RSI Demomaker), maybe to small for altivec
  • »22.02.09 - 20:22
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    @zukow

    Thanks a lot! I found another bug from BMP loader in sdl_image. It just does not handle surface->pitch correctly and fails if default align is not used.

    Please try powersdl_image.lha (v9.5) again. Gfx corruption in SDL Football is gone.

    @others

    I am also interested to know if gfx corruption in Wesnoth is gone. I dont have it installed atm.


    [ Edited by itix on 2009/2/23 8:22 ]
    1 + 1 = 3 with very large values of 1
  • »22.02.09 - 23:28
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 423 from 2005/4/9
    From: magyarorszag/h...
    wesnoth is ok for me, but x-pired still cant load the bmp gfx...
    havent tried that football game yet.

    edit: tried football, it started but stopped coz it was unable to find a server.. menu was ok:)

    [ Edited by sadddam on 2009/2/23 2:22 ]
    DEAD pegII/G4@1000.1gb ram.radeon 9200pro
    240 gigz hd.nec dvdrw.MorphOS 2.4 DEAD
    -=-=-=-
    amiga1200T.blizzardppc@180/040@25.96megz ram
    -=-=-=-=-
    zx.spectrum@3.5
  • »23.02.09 - 01:15
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    ThePlayer
    Posts: 1069 from 2003/3/24
    From: Hamburg/Germany
    There are still the same GFX coruption in window and fullscreen mode.
    Like on the picture i uploaded.

    [ Edited by ThePlayer on 2009/2/23 18:53 ]
    PowerMac G5 Quad 2.5 running UWQHD Resolution
  • »23.02.09 - 17:51
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    @ThePlayer & sadddam

    That sucks. So some users are getting gfx corruption in Wesnoth and some users not. You both are probably using 32bit screenmode, right?
    1 + 1 = 3 with very large values of 1
  • »23.02.09 - 20:59
    Profile