PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

SH3 Build Mark II

I decided to try building my own SH3 executable (independant from Jay's), and after some _tedious_ debugging/code tweaking, I came up with this information regarding the optimization errors:

Functions that provoked critical run-time errors when optimized:

d_polyse.c
     - D_PolysetRecursiveTriangle

r_draw.c
     - R_ClipEdge

Functions that caused the 'infamous' grey walls when optimized:

model.c
     - Mod_SetParent

I don't know anything about the SH3 compiler, but as these bugs only show up when compiling for SH3 release (optimized), I'm assuming it's an issue with the compiler. I'll investigate why optimization on these functions fails tonight.

If anyone would like to try the optimized SH3 build, just post here, and I'll upload it somewhere. I'd also be happy to send along the modified source files.

The FPS improvement is very nice, this was highly worth the several hours of effort.

--Yoda
PlanetUnreal Admin
I have a Jornada 548..  I would definitely be interested in trying it out....let me know
I would like to try it Yoda.
Yoda, your way is a lot better and faster than mine.  I applaud you!
But does it work on the 545?!?!
Here's a copy of the optimized SH3 build:

http://www.planetunreal.com/yoda/pocketquake-sh3-sopt.zip

Look back later today, I should have one that runs even faster (I'm going to try to optimize the functions that trigger the errors... since they're performance-critical).

--Yoda
PlanetUnreal
Last modification: Yoda - 03/30/01 at 13:17:23
Build updated. Another 0.3 FPS.

http://www.planetunreal.com/yoda/pocketquake-sh3-sopt-B.zip

This brings it up to 5.0+ doing a straight 'timedemo demo1.dem'. (And from what i can tell, people using a decompressed pak file, should get closer to 5.5).

Image

--Yoda
PlanetUnreal
Last modification: Yoda - 03/30/01 at 14:04:56
Wow, that is really impressive. Much more than I had expected SH3 to achieve at such an early stage.

Does it impare the visual quality of the game to achieve those numbers?
It's the exact same source tree (expect for the changes I made in a few source files) as the rest of the builds, so there's no visual quality difference.

--Yoda
PlanetUnreal
Vacant_Idol · 30 Mar 2001, 19:29 UTC
Good job, keep up the good work!!
Moose or Chuck · 30 Mar 2001, 20:05 UTC
Uhm, is the visual quality lesser because of the optimizations?
By the way Yoda, I tryed your new release.  I ran it with my uncompressed PAK file and got 5.0 as well.  However, I just incorporated your work on optimizations into my SH-3 code and also found some stuff that could run Quake faster.  It seemed like a big improvement when I did the demo1.dem, but for some reason only got 5.1fps.  I thought I would get more, however I think it was due to the fact that I have removed many of the jolts and jumps that the SH-3 version had before during gameplay.
I just did the demo2.dem on both versions and again mine is just .1 fps faster.  (Yoda's at 5.3fps and mine at 5.4fps)  I'm going to run one more test.
nah, I'm not
really, that's strange.. I get an entire 1 fps boost from using timedemo2 on my E-125... you should be getting a bit more shouldn't you?
No, that's not the point.  The point is my SH-3 release is always .1 fps more than Yoda's for some reason.  Anyway, does anyone have any ideas for more optimization for the SH-3?
Good news, I'm now getting 5.3 in demo1, and 5.6 in demo2!

--Yoda
PlanetUnreal
5.5 fps in demo1.dem


Image

--Yoda
PlanetUnreal
Moose or Chuck · 31 Mar 2001, 07:00 UTC
Please, don't confuse people with timedemo demo2.dem scores. demo1 is the standard, stick to that and only that.
Ok, I'll only post demo1.dem scores when I accomplish futher optimization.

5.5fps in demo1 is approaching MIPS, if I'm not mistaken.

Jay Mattis wrote:

I just incorporated your work on optimizations into my SH-3 code and also found some stuff that could run Quake faster.


What kind of changes did you make in "your SH-3 code"?

--Yoda
PlanetUnreal
Moose or Chuck · 31 Mar 2001, 09:21 UTC
MIPS runs at 7.5 FPS, iPaq at 10 I think.
Well, my 'Paqqy can push 30fps in a timerefresh on my custom map, and about 15-25 during an actual 1 on 1 match :)  It will start to slow down the with the more debris that settles on the ground however, finally averaging about 15 constant.

I've asked Dan if he could look into only keeping gibbage onscreen for a few seconds, or make it disappear entirely once it find it's final resting place.

Maybe it will be addressed later down the road if it's really needed.
Moose or Chuck · 31 Mar 2001, 15:37 UTC
sorry 999 but timerefresh on a custom map is irrelevant.
999, where can I get your custom map? I'd like to see how the Jornada fares on it.

--Yoda
PlanetUnreal
I made some lighting optimizations.
Lighting optimizations?

--Yoda
PlanetUnreal
Jay Mattis (I'm at Radio · 31 Mar 2001, 18:01 UTC
Yes, I optimized the code for dynamic lighting.  By the way, I just got 5.6fps on demo1 with my new code.  I'm missing doors and buttons, but I'm working on that.
Pfft, you don't need those silly doors and buttons anyways.  In fact Dan and 999 are collaborating on version .07 to take out all of the sound and get rid of those stupid polygons so we can just look at the rolling clouds.... :)
lol
sorry 999 but timerefresh on a custom map is irrelevant.


Why?
it's just another way of testing things.

Someone is just out to get stars ;)

Mr.$.02er
Moose or Chuck · 31 Mar 2001, 19:40 UTC
Timerefresh can not be used as a benchmarking standard. It is different for each map, for each FOV, for each (x,y,z) coordinate to the 10000000th decimal. There's no point to it. Unless you just want to have the buzz map that everyone wants ;)
Maybe not as a benchmarking standard, but a definite way to see what your work can do if it didnt have to move mountains.

Capice?

Jay, by "optimizing" dynamic lighting, do you mean "removing" it? :-)

--Yoda
PlanetUnreal
Moose or Chuck · 01 Apr 2001, 09:10 UTC
Capi'ce
Jay Mattis (I'm at a fri · 01 Apr 2001, 09:24 UTC
maybe . . .