PDA

View Full Version : Just a question about SDL



castlevaniafan
October 8th, 2005, 15:52
hello, I am new to Dreamcast Development and startet working with the SDL port for KOS.
I downloaded the Dev-Kits from this site (http://www.consolevision.com/dreamcast/dev/) and have to say,that the SDL-Port is great.
I have only one problem...maybe somebody can answer my question:

Is it normal,that SDL runs so slow on the Dreamcast?
Is there any way to get a better speed with SDL on the Dreamcast?

omer
October 8th, 2005, 16:54
hi,

It's normal that SDL Dreamcast be more slow than the original SDL, however, a new version of SDL Dreamcast has been realised 3 days ago. Look that : http://www.dcemu.co.uk/vbulletin/showthread.php?s=&threadid=11799 , this version is faster.

castlevaniafan
October 8th, 2005, 17:08
thanks omer!
i know chui's SDL Addon,but don't know how to install it.

1.I copy all Addon files to kos/addons
(with a new folder? like addons/SDL)

2. Add "-I$(KOS_BASE)/addons/include" for compiling
(in the makefile?)

3.'-lSDL_129' for linking
(also in the makefile?)

Okay,when this all would be right...do I have to implement a special function of this addon,or will it optimize the speed automaticly?

EDIT:
Do I have to use
SDL_DC_SetVideoDriver(SDL_DC_driver value)
from SDL_dreamcast.h,to get my SDL working faster?

omer
October 8th, 2005, 18:27
normally, in the repertory where you have installed your dev kit, you have a repertory named " lib ", in this repertory are present many files who have " .a " extension. So, you must put the files who are in the repertory "lib/dreamcast" of the SDL chui, in the repertory " lib " of your dev-kit ( the repertory who have many files with " .a " extension ). About the files in the repertory " include " of the SDL chui, you must put them in your repertory " include " of your dev kit. zlib.h and zutil.h go with the repertory " zlib ", the files of the repertory SDL go to the repertory " SDL " of your dev kit...you do the same for the others " .h " files.

castlevaniafan
October 8th, 2005, 18:59
I downloaded now the precompiled files from chui's site,but also the source.

So, you must put the files who are in the repertory "lib/dreamcast" of the SDL chui, in the repertory
sorry,but i find no folder "lib/dreamcast" in any of these two packages.

Also Chui wrote following on his website

Place precompiled libraries and headers to 'addons' KallistiOS subdirectory and use '-I$(KOS_BASE)/addons/include' parameter for compiling and '-lSDL_129' parameter for linking.
can't i install it like this?just putting the precompiled headers into my Kos/addons?

sorry man that i am so lazy...

omer
October 8th, 2005, 20:45
when you uncompress the zip of the SDL chui precompiled package you must have that in the directory .../lib/dreamcast : http://img345.imageshack.us/my.php?image=dcemuaide1fa.png , so you must have the same.

castlevaniafan
October 8th, 2005, 21:04
downloaded it once again:
only
/kos/addons/include/SDL with all the headers

omer
October 8th, 2005, 21:59
oh, strange O_o, with this package : http://chui.dcemu.co.uk/releases/sdlchui-precompiled-04-10-2005.rar ?

castlevaniafan
October 8th, 2005, 22:05
just the same (http://hometown.aol.de/GritliMoser/chui.JPG)

was this the link from his homepage?maybe he has changed something...

omer
October 9th, 2005, 14:46
yes the link come from the homepage of chui.

castlevaniafan
October 9th, 2005, 20:09
thanks omer...
but has nobody an idea,why I am only able to uncompress the header-files?

11.10.2005
now it works :D
maybe the whole spyware,which infiltrated my windows blocked something by uncompressing the files.
thanks omer for your help.now i can go on with chui's SDL drivers.

omer
October 15th, 2005, 17:01
ok ! good news ! good programming ;)