Homebrew Project Accelerated 2D operations in SDL

mudrik

Member
OP
Newcomer
Joined
Nov 18, 2022
Messages
18
Trophies
0
Age
31
XP
167
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
331
Trophies
0
Age
44
XP
711
Country
United States
  • Like
Reactions: Disorarara

mudrik

Member
OP
Newcomer
Joined
Nov 18, 2022
Messages
18
Trophies
0
Age
31
XP
167
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
186
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
  • Psionic Roshambo @ Psionic Roshambo:
    When I worked for Dell we had access to data about military contracts and addresses for high ranking people.
  • Psionic Roshambo @ Psionic Roshambo:
    I personally handled a call from the second highest person at Raytheon. That call bothered me a lot... The guy was nice and smart what bothered me was the way management basically just blew him off instead of going the extra mile to help him.
  • Psionic Roshambo @ Psionic Roshambo:
    In the end that call ended up costing Dell millions in lost contracts with Raytheon, and really the issue could have been solved for like 450 bucks lol
  • NinStar @ NinStar:
    sometimes I wonder why anyone would ever buy mega man x legacy collection 2
  • NinStar @ NinStar:
    I always thought that capcom shuffled the games in these collection, but apparently they are all in chronological order, which makes legacy collection 2 worthless
  • BakerMan @ BakerMan:
    guys, i want to start singing pirate metal songs and sea shanties if i play sea of thieves
  • The Real Jdbye @ The Real Jdbye:
    find a pirate metal playlist
    +2
  • The Real Jdbye @ The Real Jdbye:
    and sing along
  • BakerMan @ BakerMan:
    nevermind i just learned swearing is against the rules in sea of thieves

    i was about to start singing the song i last put in "what song are you currently listening to" yesterday
  • BakerMan @ BakerMan:
    but yeah ig so
  • The Real Jdbye @ The Real Jdbye:
    swearing not allowed in a pirate game? what has the world come to
  • BakerMan @ BakerMan:
    (here's the song for context)
  • BigOnYa @ BigOnYa:
    Just add -izle to the end of every curse word, you will be fine.
    +2
  • The Real Jdbye @ The Real Jdbye:
    i like alestorm
    +1
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa too many syllables
    +1
  • BakerMan @ BakerMan:
    same lmao
  • BigOnYa @ BigOnYa:
    hi, welcome to the Temp!
    +1
  • BakerMan @ BakerMan:
    Welcome to the Underground!
    +1
  • BakerMan @ BakerMan:
    the booty boogie from (once again) the donkey kong country cartoon could also be a good song to sing while playing sea of thieves
  • BigOnYa @ BigOnYa:
    Please insert 25 cents for an additional 30 minutes of talk time.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    It's the Switcheroo
    Psionic Roshambo @ Psionic Roshambo: It's the Switcheroo