xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
> Framerate With Sdl
hcf
post May 6 2011, 12:08 PM
Post #1


X-S Senior Member
**

Group: Members
Posts: 194
Joined: 29-October 08
Member No.: 393866



I am planning to port a Windows game made with SDL, to the Xbox. So, I have made a first attempt using libSDLx with OpenXDK, but the framerate is horrible (around 7 FPS). I use 640x480 resolution and I must refresh the full screen in every frame (think that it's a SuperMarioBros-like game with scrolling background). Of course if I only refresh a little section of the screen, the FPS boosts up, but it is not possible to do this in this kind of game. And I think that 7 FPS is too much slow...

Do anyone has worked with libSDLx and knows what framerate could be expected? For example, if I use libSDLx with XDK (and not OpenXDK), would I get a better performance? Also, I saw a post of the year 2006 where friedgold said that he made a patch to correct this issue:

http://forums.xbox-scene.com/index.php?sho...amp;mode=linear

But that patch is not online anymore. In any case, I guess that this patch was added to the libSDLx distribution lately, correct?

So, I would need some help from someone who has worked with SDL on the Xbox. What is the way to get a best framerate? XDK is better than OpenXDK? Any option of the Video Mode? (I think that I have tried with all the options...) Any patch for libSDLx to upgrade the framerate?
Thank you very much!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
freakdave
post Oct 28 2011, 05:33 PM
Post #2


X-S X-perience
**

Group: Dev/Contributor
Posts: 472
Joined: 20-April 03
From: Europe
Member No.: 33422
Xbox Version: v1.0
360 version: v1 (xenon)



QUOTE
Thank you very much Freakdave, I will definitely test that. It's very interesting because it is supposed that "SDL_Flip()" does the same that "SDL_UpdateRect(screen, 0, 0, 0, 0)"... Are you talking about XDK or OpenXDK?

Besides, I was not awared that using SDL_SWSURFACE was better than SDL_HWSURFACE in a Xbox. Again, is this related to XDK or OpenXDK?


I am talking about libSDLx (XDK) in both cases:

SDL_Flip() is meant to be used with the SDL_DOUBLEBUF flag, it swaps the display (background, foreground) buffers for systems that support double buffering.

On systems that do not support double buffering, SDL_Flip will do the same as SDL_UpdateRect(screen, 0, 0, 0, 0).

In terms of speed, you should use SDL_HWSURFACE in combination with the SDL_DOUBLEBUF flag -> http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode

HOWEVER, for a decent frame rate on the XBOX (XDK, libSDLx) you might want to use the setup provided in my last post.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post







Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 23rd May 2013 - 06:01 AM