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: 196
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 May 27 2011, 07: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)



Well, i experienced the same FPS problem in my SDL application that i am developing for the XBOX. These lines fixed it for me, i am getting constant 58 fps (instead of 5-6 fps) now.

This should be somewhere in the video initialization code:
CODE

screen = SDL_SetVideoMode(640, 480, 16, SDL_FULLSCREEN | SDL_SWSURFACE);


Search for SDL_Flip(), replace it with:
CODE
SDL_UpdateRect(screen, 0, 0, 0, 0);


Hope this helps...

This post has been edited by freakdave: May 27 2011, 07:40 PM
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: 20th June 2013 - 12:35 AM