Software-Renderer broken? Remove it!

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mreuter
Posts: 4
Joined: Tue Sep 21, 2004 8:28 am
Location: Düsseldorf
Contact:

Software-Renderer broken? Remove it!

Post by mreuter »

Hi,

I just tried to use the Software-Renderer with a few of the examples in Irrlicht-0.7. The more complex examples won't work; what I get looks like clipping errors.

As the Software-Renderer seems to be broken (and would be too slow for the most uses), I wanted to have the ability to remove it from the .DLL (like the other renderer by not defining _IRR_COMPILE_WITH_XXX_ in IrrCompileConfig.h).

I did some minor modifications. No I can undefine _IRR_COMPILE_WITH_SOFTWARE_ and compile the DLL without the Software-Renderer (saving some memory).

In addition as I don't like the Irrlicht-GUI very much and have no use for it in my projects, I can remove GUI-support by undefining _IRR_COMPILE_WITH_GUI_ (the GUI should IMO be a layer on top of the irrlicht-engine - not integrated with it).

For anybody who would like to remove Software-Renderer and/or GUI-support, I made a patch-file available with the appropriate changes: Patch
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

I agree with that, maybe a seperate file with these defines should be somewhere so that peeps can customise what they want with the engine. Every project is different, for example I will switch to using PNG format when I am sure that it is working ok in NX so I have no need for the libjpg files. I'd bet there are plenty of things peeps don't need/want but that they would be totally different to another's wants. Something to consider I think.
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

mreuter, what size of you new Irrlicht.dll do you have?
mreuter
Posts: 4
Joined: Tue Sep 21, 2004 8:28 am
Location: Düsseldorf
Contact:

Post by mreuter »

Normal Size: 884kb
w/o Software Renderer: 856kb
w/o Software Renderer & GUI: 784kb

I just discovered a bug in my patch when compiling with GUI and w/o Software Renderer:
in the BuildInFont.h I wrote

Code: Select all

#if defined(_IRR_COMPILE_WITH_SOFTWARE_)
where it should read

Code: Select all

#if defined(_IRR_COMPILE_WITH_GUI_)
I changed that in my patch-File...
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

I also thought about that. But 100 KB size is not a lot. And it won't get faster without the code.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I agree. If it's there, there must be a reason for that. I'd rather wait for it to get fixed.

besides, I'm getting a 800kb dll with everything included. It's just a matter of which optimization options you're using

:D

ps. Check UT2k4; it includes a software rendering option, and it's pretty darn good!
Image
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

But the UT2k4 engine is also created by "the best" :wink:.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

yup! but Niko is also darn good! and many others in the forums! :wink:

check some of the the optimization options in the MSVC toolkit compiler:
http://www.danielpatton.com/afecelis/sc ... ptimum.jpg
Image
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

And what optimizations do you use?
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

/01 /02 /EHsc /G7

mmmmmmhhhhhh

let me check my compile file, but so far by memory I remember those

:D
Image
Post Reply