Homebrew Project Accelerated 2D operations in SDL

mudrik

Member
OP
Newcomer
Joined
Nov 18, 2022
Messages
22
Trophies
0
Age
31
XP
186
Country
Turkey
Hi all!
I'm happy to announce that I've added support for hardware-accelerated blit and fillrect operations to libSDL for the Wii and GameCube. I hope that the changes will be accepted into devkitPro's SDL port, but in any case in the meantime you can play with my fork (I'm not allowed to post links to this forum, but just append mardy/SDL to the github homepage and you'll find it).

The README file has step-by-step instructions on how to build the library, so hopefully it's something that you can try easily.

I've tried it on a few games already, and they do work, but they almost made no use of 2D operations (they mostly call SDL_LockSurface() and then handle pixels by hand), so this is not a full test. If you know of Wii games using SDL with many calls to SDL_FillRect or SDL_BlitSurface, please let me know, I will try to test them :-)

Now I'll go back to work on my little game, hopefully you'll get news about it in a couple of months :-)
 

Exidous

Well-Known Member
Member
Joined
Mar 2, 2021
Messages
341
Trophies
0
Age
44
XP
719
Country
United States
  • Like
Reactions: Disorarara

mudrik

Member
OP
Newcomer
Joined
Nov 18, 2022
Messages
22
Trophies
0
Age
31
XP
186
Country
Turkey
Thanks!

As for World of Goo, as far as I understand the game is not open source, so I'm afraid there's little we can do about it. I found this nice page of SDL games on the wiibrew wiki (https://wiibrew.org/wiki/Category:Homebrew_using_SDL_libraries -- finally I can post links, too :-) ), and I tried a couple of them. They do work, but all they do is direct pixel manipulation, so using my build of SDL doesn't bring a performance benefit in their case. But if someone knows of an open source Wii SDL game that has low FPS, please let me know, maybe we can do something about it.
 
  • Like
Reactions: Disorarara

GateGuy

Active Member
Newcomer
Joined
Nov 14, 2019
Messages
30
Trophies
0
XP
193
Country
United States
I mentioned this game in your SDL2 thread, but Trogdor: Reburninated is currently 25 FPS at 480p and makes heavy use of SDL_BlitSurface. If you're looking for a test, I added a branch to the repo that disables the resolution change at higher framerates so it always forces 480p.
 
  • Like
Reactions: mudrik

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    11.0 hack is great if you got a webos tv
  • ZeroT21 @ ZeroT21:
    i dont have LG tvs around
  • ZeroT21 @ ZeroT21:
    all TCL
  • ZeroT21 @ ZeroT21:
    and a sony
  • K3Nv2 @ K3Nv2:
    You can map a button on your remote to launch the script call it a day
  • K3Nv2 @ K3Nv2:
    I'd stay on 9.0
  • K3Nv2 @ K3Nv2:
    I had a spare ps4 on 10.0 so decided to try it
  • ZeroT21 @ ZeroT21:
    i just want to play the psp resistance port
  • K3Nv2 @ K3Nv2:
    Psps are high tech
  • ZeroT21 @ ZeroT21:
    there is no backported version for me fw
  • K3Nv2 @ K3Nv2:
    Don't own the hardware?
  • ZeroT21 @ ZeroT21:
    both 2 psp busted
  • K3Nv2 @ K3Nv2:
    Hunt down a vita?
  • ZeroT21 @ ZeroT21:
    Tried, but the conditions i saw most of 'em left me reelin'
  • K3Nv2 @ K3Nv2:
    You won't find a excellent condition unless you wanna pay $200
  • ZeroT21 @ ZeroT21:
    i know, it's as much as getting a new switch lite
  • K3Nv2 @ K3Nv2:
    Could always get a poor condition slim and shell swap it slims are easier to swap out
  • ZeroT21 @ ZeroT21:
    with money left to spare
  • K3Nv2 @ K3Nv2:
    Or maybe an Anbernic device that can emulate psp
  • K3Nv2 @ K3Nv2:
    Psps still going for $100 on ebay lol
  • ZeroT21 @ ZeroT21:
    i'll consider it
  • ZeroT21 @ ZeroT21:
    if only i can backport the game meself
  • K3Nv2 @ K3Nv2:
    Pretty sure the new flip one can do psp if you don't mind the sp design
  • ZeroT21 @ ZeroT21:
    resistance still has jerky gameplay on emu
    ZeroT21 @ ZeroT21: resistance still has jerky gameplay on emu