Search found 19 matches

by pw_32x
Tue Apr 18, 2023 1:30 am
Forum: Super 32X
Topic: Runtime issues with built d32xr
Replies: 1
Views: 3181

Runtime issues with built d32xr

Hello! This weekend I managed to build Chilly Willy's 32x toolkit (sega-toolchain-12.1.7z) and Victor's doom32xr. I built them on WSL on Ubuntu. Running Doom32x, however, I get bad colors and a bad line table. https://i.imgur.com/VJit9Pv.jpeg I've tried other 32x examples and they seem to work fine,...
by pw_32x
Mon Oct 03, 2022 2:21 am
Forum: Super 32X
Topic: simplest method for 32x sound?
Replies: 1
Views: 3960

simplest method for 32x sound?

I've been experimenting with sound on the 32X and nothing I try works. Sometimes I get clicking. What's the most basic way to get anything out of the 32x sound? I've got the same commonly used init code. #define SAMPLE_RATE 22050 #define SAMPLE_MIN 2 #define SAMPLE_CENTER 517 #define SAMPLE_MAX 1032...
by pw_32x
Sun Jan 30, 2022 5:56 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

Whoops! Big whoospi on my behalf... it's 0x40000000, not 0x60000000. Sorry about that. Don't know how I confused the two. :oops: Aha! :) No worries! In case you are wondering and don't want to actually go read the SH2 hardware manual... I actually tried but I find it sometimes difficult to interpre...
by pw_32x
Sat Jan 29, 2022 11:53 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

I've been experimenting a bit more. I've also been trying to reproduce a cache inconsistency between both cpus just so I can experiment with uncaching and flushing and I just haven't been able to. Oh delicious irony.
by pw_32x
Sat Jan 29, 2022 4:40 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

I'm not sure I'm doing this correctly. Flushing arrays properly has got me stumped. // main cpu ClearArea* currentClearArea; // an array of areas to clear ClearArea* clearAreaEnd = currentClearArea + clearAreasCount; // the end of the array // on the second cpu FlushMemory(currentClearArea, clearAre...
by pw_32x
Wed Jan 26, 2022 2:59 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

I'm still iffy about when to uncache things. I'll describe the scenarios I currently have. Scenario 1: I have an array of sprites to draw. It's filled every frame, drawn, and then reset. Timeline: (main cpu): I go through every game entity in the scene and each entity fills the sprite array with the...
by pw_32x
Tue Jan 25, 2022 1:47 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

Somewhat ill defined question: Say I have a pointer to a struct whose fields point to other structs and I pass the pointer from one CPU to another to work on. On the second CPU, do I have to work uncached for all pointers if I want to be sure I have the updated values? Or just the "root" pointer? I'...
by pw_32x
Mon Jan 24, 2022 1:49 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

So I did a quick and dirty implementation of drawing the top and bottom half of the "game field" objects (spheres, player, trees) across both CPUs and the results were very encouraging. The game's frame rate jumped by 10 fps which really got my hopes up. I'll be splitting up some more work across bo...
by pw_32x
Sun Jan 23, 2022 8:33 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

Started messing around with the second CPU. The info on the uncached pointer stuff was super helpful, thanks! https://twitter.com/pw_32x/status/1485347144605257735 First thing I want to try out is splitting the sprite rendering across both CPUs. I hope I'll see a performance bump. Performance has sl...
by pw_32x
Sun Jan 09, 2022 1:07 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

One thing you need for best speed on the SH2 side - keep the MD off the bus. Make sure the Z80 is held reset, the 68000 is running in work ram, and the VDP is not doing any DMA. Running the 68000 main() in rom is enough to maybe halve the speed of the 32X side. Looking around marsdev toolkit, there...
by pw_32x
Thu Jan 06, 2022 6:34 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

I tried a few things that Vic suggested in Saxman's 32X thread: 3) try different optimization settings: generally -Os works better, but also try -O2 to see if that improves performance I was using -O3 for 31-33fps. I switched to -Os an I get 33-35fps for the same scene. Nice! I also tried -O2 with t...
by pw_32x
Wed Jan 05, 2022 4:10 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 101069

Re: 32X VDP going crazy with my attempts to draw

1) always keep your drawing code in SDRAM Noob questions alert: That's copying individual C draw functions into SDRAM? and calling them through a function pointer? Is it possible to know what the size of a function is when copying it into RAM? Does the function have to be self contained and not cal...
by pw_32x
Wed Jan 05, 2022 12:08 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

I posted this in another thread, but I thought it useful to add it here. Re: performance In my 32X project, in a frame that looks like this: gens_gzWgqbV7sg.png There are - a sky, horizon, and ground - several dozen trees - a dozen clouds - the player - five spheres - five shadows for the spheres Ac...
by pw_32x
Wed Jan 05, 2022 12:06 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 101069

Re: 32X VDP going crazy with my attempts to draw

I wanted to add data to the conversation about performance. In my 32X project, in a frame that looks like this: gens_gzWgqbV7sg.png There are - a sky, horizon, and ground - several dozen trees - a dozen clouds - the player - five spheres - five shadows for the spheres According to the stats I'm trac...
by pw_32x
Sun Jan 02, 2022 6:04 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40875

Re: Untitled 32X Super Scalar Project

The plane is made out of sprites, yep. They're rendered from a 3d model I made in Blender.