Search found 19 matches

by saxman
Sun Jan 16, 2022 5:00 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

It's no wonder it has problems... you aren't saving r0 or r2. Close. It is saving the R0 register in 'main_irq'. However, I completely missed R2. Fixed. Thanks! Static is only for LOCAL variables. This MUST be a global variable. "volatile unsigned int variable_name;" and this must not be inside a f...
by saxman
Fri Jan 14, 2022 6:40 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

That variable needs to be set as volatile, for one. Also, have you enabled the vbi? Look at D32XR's crt0.s at about line 390. We enable the vbi and set sr to allow interrupts right before purging the cache and jumping to main(). I got it "working". That is, it calls my C code now! But something els...
by saxman
Mon Jan 10, 2022 11:05 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

I've been trying to establish an FPS counter to aid me further in screen draw optimizations. I want to increase a counter every time a V-Int occurs. Likewise, I want to increase a frame counter every time I draw to the screen in my logic loop. Then with some math wizardry, I have an FPS count. The p...
by saxman
Sat Jan 08, 2022 4:51 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 35996

Re: Untitled 32X Super Scalar Project

Chilly Willy wrote:
Sat Jan 08, 2022 12:36 am
Make sure the Z80 is held reset
I've wondered about this for a while now. So if I'm interpreting you correctly, it sounds like unless you want to hinder the system's overall performance, using the Z80 for anything at all does more harm than good in the case of 32X development.
by saxman
Thu Jan 06, 2022 9:16 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

Oh my gosh... just figured it out: volatile unsigned short *lineTable16 = &(*(volatile unsigned short *)0x24000000); volatile unsigned short *frameBuffer16 = &(*(volatile unsigned short *)0x24000200); Since it's using entries from 'lineTable16' to plug into the offset for 'frameBuffer16', it's throw...
by saxman
Thu Jan 06, 2022 7:55 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

Good question. I have set the camera position to {0,0} and modified the level layout slightly to get it to draw some things. Should show 128x128 area of waterfall and 128x128 area of wall in the following way: [water, wall, water] [wall, water, wall] The right-most chunks should only show the first ...
by saxman
Thu Jan 06, 2022 4:42 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

So I've been trying to take care of the 0xFF pixel shift bug. I also wanted to take advantage of more frame buffer real estate, thus trying to make each row 578 pixels wide (that number was picked in part because it only allows for a single 0xFF line offset at any given time). I rewrote the drawing ...
by saxman
Mon Jan 03, 2022 5:55 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

There is only enough fill rate to cover all of the screen once while using all of the CPU power, due to all the wait states on VRAM access. If you want 60FPS you need to limit amount of stuff that gets drawn, both in area and definitely in overdraw. It is faster to check what has to be drawn and cu...
by saxman
Sun Jan 02, 2022 5:57 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 35996

Re: Untitled 32X Super Scalar Project

Is that airplane polygon-based, or just a bunch of sprites at different angles? Looks spritey, but angle changes are very fluid like polygons
by saxman
Sun Jan 02, 2022 5:51 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

Take a look at my research posts about drawing sprites. There are routines that draws 32x32 sprites in various ways. It may give you some ideas. But realistically chances are you’ll have to settle for a low framerate or draw just the important objects. The 32x doesn’t give you enough pixel throughp...
by saxman
Sun Jan 02, 2022 5:27 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

Posting a screenshot of the latest. I have an entire level drawing now. Y scrolling has some bugs due to my tile buffer not clearing adequately, but apart from that, it's doing exactly what it's supposed to do. 32x_02.png However, it's so slow that it's no practical to use it for anything thus far. ...
by saxman
Sun Jan 02, 2022 5:20 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 35996

Re: Untitled 32X Super Scalar Project

I was going through all those tweets. Looks like you're off to a good start. Reminds me a lot of Super Thunder Blade. Looking forward to seeing where this goes.
by saxman
Tue Dec 28, 2021 7:25 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

Many thanks for the helpful input thus far. I finally have graphics drawing correctly after a lot of work playing around with formatting the data in a way that speeds up the drawing. Inevitably, I believe I'll have to rewrite some of this in assembly for speed, but it's nice to work out some issues ...
by saxman
Tue Dec 07, 2021 7:53 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

Thanks for the information! Very helpful. Here's something else for you or whomever wants to chime in... I'm used to the x86 and 68k where I can expect certain instructions to take X number of CPU cycles to complete, thus aiding me in optimization efforts I may engage in. I see no information on cyc...
by saxman
Sun Dec 05, 2021 6:25 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 33
Views: 86122

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

I'll use the topic I already created for this question since it's related to my attempts at drawing on the 32X... I know writing 16-bit on an odd address is a no go for the frame buffer. I know what happens in Kega Fusion when I attempt it... it drops the least-significant bit. What happens on real ...