| SA-1 Patch Released (Final version released) |
|
Forum Index - SMW Hacking - Resource and Tool Releases - SA-1 Patch Released (Final version released) |
|
Pages: 1 2 3  |
|
|
|
| Posted on 2012-03-16 12:22:24 AM |
Link | Quote |
|
It should actually really help with the OAM. SMW's routine that compresses $0420+ down into the $0400 area eats up a good amount of time. Same with the one that shoves all sprites tiles offscreen at the end of every frame.
Don't see it helping too much with anything else sprite related, unless you've got a really slow custom one. Collision maybe?
|
| Last edited on 2012-03-16 12:23:05 AM by Kaijyuu. |
|
| Posted on 2012-03-16 07:42:31 AM |
Link | Quote |
|
Here it: http://bin.smwcentral.net/u/8251/oam_optimization.zip.
This patch optimizes the two routines that you said. It is not very difficult to optimize a few things when the SA-1 can access (in this case, with my oam remap). As for the sprites, I'm thinking of a way to SNES copy all the information required to SA-1 stratch RAM and SA-1 return information already processed.
In addition to the sprites, I'm also creating a version of LC_LZ2 with SA-1.
|
| Last edited on 2012-03-16 09:12:18 AM by Vitor Vilela. |
|
|
|
| Posted on 2012-03-28 10:09:02 AM |
Link | Quote |
|
Can this SCALE sprites? I wanna know, because I wanna make some sprites like DKC. Also, what about that X = (.....?
I don't understand that so specify math. Can you make an example of rotating it 1, 2, 3 pixels?
|
|
| Posted on 2012-03-28 10:39:18 AM |
Link | Quote |
|
|
If I remember... with SA-1, you can scale and rotate sprites (and layers, too), but I don't know if this patch do this.
|
|
| Posted on 2012-03-28 10:45:17 AM |
Link | Quote |
|
Originally posted by Luigi370Can this SCALE sprites? I wanna know, because I wanna make some sprites like DKC. Also, what about that X = (.....?
I don't understand that so specify math. Can you make an example of rotating it 1, 2, 3 pixels?
Also, I wanna know:
- which addmusic works with this shit patch?
|
|
| Posted on 2012-03-28 12:45:00 PM |
Link | Quote |
|
SA-1 can manipulate any kind of bitmap (graphics) (not sprites or layers). Although it is possible do everything you said, you need someone to make first. But it is very difficult to do this.
About addmusic, they worked just fine if you change the definitions !EXB to $00, !FXB to $01 and expand the ROM to 2MB, or you will need to implement the SA-1 Memory Map on them.
|
|
| Posted on 2012-03-28 01:24:11 PM |
Link | Quote |
|
Originally posted by Luigi370Can this SCALE sprites? I wanna know, because I wanna make some sprites like DKC.
DKC doesn't use the SA-1 (or anything).
|
| Last edited on 2012-03-28 01:24:59 PM by wiiqwertyuiop. |
|
| Posted on 2012-03-28 03:27:31 PM |
Link | Quote |
|
Originally posted by Vitor VilelaAbout addmusic, they worked just fine if you change the definitions !EXB to $00, !FXB to $01 and expand the ROM to 2MB, or you will need to implement the SA-1 Memory Map on them.
What would be required to do this? What exactly is the SA-1 memory map for 4MB ROMs?
|
|
| Posted on 2012-03-28 06:49:16 PM |
Link | Quote |
|
Well, LoROM games normally have this memory map:
$00-$6F:$8000-$FFFF -> all parts of rom (max 3.5 MiB)
or in FastROM:
$80-$FF:$8000-$FFFF -> all parts of rom (max 4.0 MiB)
But SA-1 is a bit different:
$00-$3F:$8000-$FFFF -> part 1 of rom (1-2 mb)
$80-$BF:$8000-$FFFF -> part 2 of rom (3-4 mb)
Addmusics normally use FastROM. Because of this, when the snes tries to access the ROM in banks $80-$FF, will return data from another location and so a crash will occur.
Changing EXB and FXB to $00 and $01 will typically make banks $80-$BF to access the first part of the ROM, but doing so would limit the size of a 2MB ROM.
An easy way to implement SA-1 Memory Map is to remove all the |$800000 in jumps and remake the lorom2pc and pc2lorom in tools.
|
|
| Posted on 2012-03-29 08:55:04 AM |
Link | Quote |
|
Originally posted by wiiqwertyuiopOriginally posted by Luigi370Can this SCALE sprites? I wanna know, because I wanna make some sprites like DKC.
DKC doesn't use the SA-1 (or anything).
I did say:
Originally posted by Luigi370I wanna make some sprites like DKC.
REMAKE, not rip-off. I wanna do it with not 3D GFX.
EDIT:
Can anyone make a rotation example? For example, I want the sprite from SA-1 rotation takes.
|
| Last edited on 2012-03-29 09:04:13 AM by Luigi370. |
|
| Posted on 2012-03-29 04:58:11 PM |
Link | Quote |
|
My understanding is to rotate a sprite tile, you have to rotate it manually. As in, rearrange the pixels yourself. With mathematics.
Might as well just use a dynamic sprite. Takes a ton of ROM space but a hell of a lot easier.
|
|
| Posted on 2012-03-30 10:05:28 AM |
Link | Quote |
|
I wanna know an example of rotation.
ViViela, please, post your rotating sprite here.(the one you uused for rotation takes)
|
|
| Posted on 2012-03-30 01:45:34 PM |
Link | Quote |
|
Awesome! Now someone do Super FX...
What exactly can this patch make possible besides the general description of making the ROM able to do more.
|
|
| Posted on 2012-03-30 05:15:55 PM |
Link | Quote |
|
Originally posted by Roads1What exactly can this patch make possible besides the general description of making the ROM able to do more.
Originally posted by Vitor VilelaSA-1 can manipulate any kind of bitmap (graphics) (not sprites or layers).
That sums up the most common use of the chip. Often it's used for scaling and rotating sprites.
|
|
| Posted on 2012-03-30 06:03:00 PM |
Link | Quote |
|
|
Cool! So it's like Mode 7 everything, right?
|
|
| Posted on 2012-03-30 06:16:42 PM |
Link | Quote |
|
@Luigi370: I'm doing a better code of rotation/scaling, because the current is not fast. So while I unable to create a good, I cannot post here.
@Roads1: This patch allows to run ASM code ~5x faster than normal. SA-1 is a processor very similar to the SNES, except that it has a clock of 10 MHz, instead 2 MHz of SNES. The main purpose is to speed but it comes with additional features that allows you to do things like editing bitmap (in other words: sprite/graphics scaling/rotation, "3D" (via software, obvious), etc.)
@RPG Hacker: The main purpose of the SA-1 is not really rotate/scale graphics. It is mostly used to speedup code. Unlike SuperFX, SA-1 has its own indexing, stack, direct page, data bank, AXY, where SuperFX not.
Edit: ninja'd
@Roads1: No. He is just a high-speed CPU, but has features that allows editing of bitmap.
|
| Last edited on 2012-03-30 06:18:28 PM by Vitor Vilela. |
|
| Posted on 2012-03-30 06:32:28 PM |
Link | Quote |
|
Originally posted by Vitor VilelaThe main purpose of the SA-1 is not really rotate/scale graphics.
That's why I said "often" and not "usually".
|
|
| Posted on 2012-04-05 01:49:28 AM |
Link | Quote |
|
Do LevelASMtool works with this?
I think levelASM is worse than the tool.
|
|
| Posted on 2012-04-05 12:24:01 PM |
Link | Quote |
|
|
With some modifications in the tool, it's possible because the tool doesn't have the "SA-1 Processing" code, so it's better to stick with LevelASM until someone sends the LevelASMTool compatible with SA-1.
|
|
|
Pages: 1 2 3  |
|
|
|
|
Forum Index - SMW Hacking - Resource and Tool Releases - SA-1 Patch Released (Final version released) |