jotego / jtcores

FPGA cores compatible with multiple arcade game machines and KiCAD schematics of arcade games. Working on MiSTer FPGA/Analogue Pocket
https://patreon.com/jotego
GNU General Public License v3.0
216 stars 38 forks source link

outrun: no SPRITES for some users on Analogue Pocket #515

Open NeilGSPGUK opened 7 months ago

NeilGSPGUK commented 7 months ago

there are no Car / Road Side Icons in the latest build.

jotego commented 7 months ago

Are you talking of Out Run? I do get the cars and the signs. But I think that issue may happen occasionally. Try powering off and on completely the Pocket. Let me know if you find some pattern to it. I am not able to replicate this problem at the moment.

NeilGSPGUK commented 7 months ago

all roms in the OUTRUN Core, I updated today and just get road, in all roms inc Turbo Outrun. didnt backup previous version. is there a way to install previous version? version installed INTERNAL 2024-01-26

jotego commented 7 months ago

Old versions are kept in JTBIN.

This could be a timing issue related to some RAM modules in the Pocket. Would you be willing to test some core versions compiled with different timing to test this hypothesis?

NeilGSPGUK commented 7 months ago

Yes no problem. Just let me know what I can do to help

NeilGSPGUK commented 7 months ago

@jotego FYI rolled back to the version 15.0 2023-11-24 and Sprites are all present.

NeilGSPGUK commented 7 months ago

FYI I just updated, and the new version 659baa4 2024-02-02 again has the missing sprites @jotego .

Dawbo66 commented 7 months ago

As requested from Discord, I'm having the same issue , no graphics on outrun or turbo outrun, (big al) from discord, I can do any test for you @jotego .

Dawbo66 commented 6 months ago

@jotego After updating with jtfriday_240209_pocket the game appears to be working as it should, will report back if any update.

jotego commented 6 months ago

There was no relevant change justifying a magical fix here in the last release. There is either a sensitivity to the clock phase in the external memory interface or a combinational logic glitch somewhere. Making this feature unstable for some users.

c-hri-s commented 6 months ago

Confirm the latest released fixed it for me too

SkyNIC commented 6 months ago

Only I have glitched graphics in turbo outrun? 20231126_171336 20231126_171356 20231126_171416

NeilGSPGUK commented 6 months ago

Confirm the latest released fixed it for me too

Fixed for me also thanks!

GoldZabu commented 6 months ago

They seem to be gone again in the March 1 update.

Dawbo66 commented 6 months ago

They seem to be gone again in the March 1 update.

I've tried starting Outrun several times on the Pocket and all seems good, a couple of months ago there was an issue, I'm wondering if something's creeping back in, maybe delete and put back on ensuring any saves are also deleted.

JanGunheD commented 6 months ago

The sprites are also missing on my pocket. Sometimes some groups of horizontal lines appear instead.

trza49 commented 6 months ago

Yeah had this issue on the Pocket. I just deleted the core and assets and reloaded but still the same.

Dawbo66 commented 6 months ago

Try going back to jtfriday_240209_pocket and see if its resolved..

trza49 commented 6 months ago

Try going back to jtfriday_240209_pocket and see if its resolved..

Where do I find this file please? I'm new to GitHub.

Dawbo66 commented 6 months ago

Try going back to jtfriday_240209_pocket and see if its resolved..

Where do I find this file please? I'm new to GitHub.

There here https://www.patreon.com/jotego/posts look for jtfriday_240209_pocket on the 9th feb or https://github.com/jotego/jtbin

JanGunheD commented 6 months ago

Try going back to jtfriday_240209_pocket and see if its resolved..

Yes, that fixes it. I used jtfriday_240216_pocket.zip.

Dawbo66 commented 6 months ago

Outrun is a bit temperamental at the moment for some users.

46VR46 commented 5 months ago

Hi everyone. I still have this issue. Even after formatting my card and starting again. If I go back to download jtfriday_240216_pocket.zip version, can I confirm that once I download that, I can go into the core and asset folder and copy and paste these outrun core and asset folders into my card (in the same positions) and that's it? I don't need to change any other files anywhere on my card? And this should work. Thanks for your help guys.

Dawbo66 commented 5 months ago

Yes just overwrite when asked.

46VR46 commented 5 months ago

Yes just overwrite when asked.

Hey thanks so much for the fast reply..... Done but no dice! So I dropped those two folders from the jtfriday_240216_pocket.zip version and overwrote the folder that were on my SD Card. Now when I go into the outrun core I get the message "Error in framework missing 'ROM' ID(1)". Does that mean I need to link something or reset where the AP is no looking for the core. I know it must just be one step I am missing here. Thanks.

Dawbo66 commented 5 months ago

Have you deleted the rom? If not the rom isn't correct for the core you replaced, you would need to generate the rom again,. Check if the rom is in assets/ common. Does turbo Outrun work ? Any issues delete the files including the saved file for Outrun and run updater again.

46VR46 commented 5 months ago

Have you deleted the rom? If not the rom isn't correct for the core you replaced, you would need to generate the rom again,. Check if the rom is in assets/ common. Does turbo Outrun work ? Any issues delete the files including the saved file for Outrun and run updater again.

haha. Gold. Inset one of those little slap face emojis here! Thanks so much. I knew it was going to be something stupid that I was missing. 100% correct. Place the rom back in there and now working like a charm. I think I was just thinking that the rom was in that jtfriday_240216_pocket.zip and didn't think about having to place it in their manually as normally I would use pupdate which would normally download and insert the rom for me. So good pickup and I appreciate it. Cheers. Hopefully this will help someone else have the same issue.

Dawbo66 commented 5 months ago

This issue is known, I had it myself, normally over writing the files wouldn't delete the rom because there isn't one in the download, as you said, but now it's working so all good..

trza49 commented 5 months ago

Still no luck for me. I don't know what's going on. Since the latest FW update Outrun refuses to work properly. I've deleted, updated and replaced everything I could and I still get the same outcome, no sprites.

Dawbo66 commented 5 months ago

Probably best to revert back to an older core for Outrun.

trza49 commented 5 months ago

Probably best to revert back to an order core for Outrun.

Many thanks just did that and got it working again on the 09.02.24 build. When I downloaded what I thought was the correct file from Github I didn't have any luck but I joined the Patreon and that file worked. Strange. Many thanks.

itsTrifle commented 5 months ago

Just commenting as requested in discord that I have the missing sprites issue too @jotego - LMK if testing required

jotego commented 5 months ago

I have prepared a file with better timing constraints. Please test it and report whether it works or not for you: jtoutrun_4f713435.zip. This version corresponds to git commit 4f713435.

If this is not enough, I will apply the clock shift strategy to the CRAM clock. That is the same approach we use for the SDRAM clock to make it work across all devices.

Dawbo66 commented 5 months ago

@jotego out of the 20 times i loaded this up, it loaded 20 times correctly on freeplay, no graphics missing. after the last update i did have to go back to a previous version. (jtfriday_240216_pocket.zip)

jotego commented 5 months ago

@jotego out of the 20 times i loaded this up, it loaded 20 times correctly on freeplay, no graphics missing. after the last update i did have to go back to a previous version. (jtfriday_240216_pocket.zip)

Let me clarify:

Is that correct?

Dawbo66 commented 5 months ago

@jotego out of the 20 times i loaded this up, it loaded 20 times correctly on freeplay, no graphics missing. after the last update i did have to go back to a previous version. (jtfriday_240216_pocket.zip)

Let me clarify:

  • the file jtoutrun_4f713435.zip works correctly
  • latest file in JTBIN, does not
  • an older version (240216) worked too

Is that correct?

yes this is correct for me anyway.

itsTrifle commented 5 months ago

I have prepared a file with better timing constraints. Please test it and report whether it works or not for you: jtoutrun_4f713435.zip. This version corresponds to git commit 4f71343.

If this is not enough, I will apply the clock shift strategy to the CRAM clock. That is the same approach we use for the SDRAM clock to make it work across all devices.

I can confirm the sprites display correctly for me with this build

Dawbo66 commented 5 months ago

@jotego out of the 20 times i loaded this up, it loaded 20 times correctly on freeplay, no graphics missing. after the last update i did have to go back to a previous version. (jtfriday_240216_pocket.zip)

Let me clarify:

  • the file jtoutrun_4f713435.zip works correctly
  • latest file in JTBIN, does not
  • an older version (240216) worked too

Is that correct?

1000006226

Just switched the Pocket on and tried outrun and had No sprites and green lines across the screen, Tried switching Pocket off and on, same result, put jtfriday_240216_pocket.zip back on, worked first time, so I'm not sure why it went that way.

JanGunheD commented 5 months ago

I have prepared a file with better timing constraints. Please test it and report whether it works or not for you: jtoutrun_4f713435.zip. This version corresponds to git commit 4f71343.

If this is not enough, I will apply the clock shift strategy to the CRAM clock. That is the same approach we use for the SDRAM clock to make it work across all devices.

Works fine on my Analogue Pocket :-).

manichispanic999 commented 5 months ago

I have prepared a file with better timing constraints. Please test it and report whether it works or not for you: jtoutrun_4f713435.zip. This version corresponds to git commit 4f71343.

If this is not enough, I will apply the clock shift strategy to the CRAM clock. That is the same approach we use for the SDRAM clock to make it work across all devices.

This fixed my sprite issue. Thanks!

GoldZabu commented 4 months ago

The April 26th update seems to have broken sprites again.

hansfbaier commented 4 months ago

I have the same issue in the MiSTeX port.

jotego commented 4 months ago

I have the same issue in the MiSTeX port.

Unless the MiSTeX uses PSDRAM, it is not the same problem.

hansfbaier commented 4 months ago

I have prepared a file with better timing constraints. Please test it and report whether it works or not for you: jtoutrun_4f713435.zip. This version corresponds to git commit 4f71343. If this is not enough, I will apply the clock shift strategy to the CRAM clock. That is the same approach we use for the SDRAM clock to make it work across all devices.

Works fine on my Analogue Pocket :-).

Can you point me to a diff, to see an example of how the changes would look like?

jotego commented 4 months ago
 # setup/hold time requirements for CRAM 0/1
 # CRAM0
-set_output_delay -clock cram0_clk -max 2 \
+# tSP^M
+set_output_delay -clock cram0_clk -max 3 \^M
     [get_ports {cram0_a[*] cram0_dq[*] cram0_adv_n cram0_cre \
                 cram0_oe_n cram0_we_n \
                 cram0_ub_n cram0_lb_n }]

+# tCSP^M
 set_output_delay -clock cram0_clk -max 4 \
     [get_ports {cram0_ce0_n cram0_ce1_n  }]

-set_output_delay -clock cram0_clk -min -4 \
+# tHD, hold time^M
+set_output_delay -clock cram0_clk -min -2 \^M
     [get_ports {cram0_a[*] cram0_dq[*] cram0_adv_n cram0_cre \
                 cram0_ce0_n cram0_ce1_n cram0_oe_n cram0_we_n \
                 cram0_ub_n cram0_lb_n }]

+# tkOH in data sheet, output hold time^M
+set_input_delay -clock cram0_clk -min -2 \^M
+    [get_ports {cram0_dq[*] }]^M
+^M
 # CRAM1
-set_output_delay -clock cram1_clk -max 2 \
+set_output_delay -clock cram1_clk -max 3 \^M
     [get_ports {cram1_a[*] cram1_dq[*] cram1_adv_n cram1_cre \
                 cram1_oe_n cram1_we_n \
                 cram1_ub_n cram1_lb_n }]
@@ -56,6 +65,9 @@ set_output_delay -clock cram1_clk -min -2 \
                 cram1_ce0_n cram1_ce1_n cram1_oe_n cram1_we_n \
                 cram1_ub_n cram1_lb_n }]

+# tkOH in data sheet, output hold time^M
+set_input_delay -clock cram1_clk -min -2 \^M
+    [get_ports {cram1_dq[*] }]^M
Toryalai1 commented 4 months ago

Turbo outrun has graphical glitches. (Mister fpga) Reproduce:

image

image

SkyNIC commented 3 months ago

MiSTer port have same issue изображение

JanGunheD commented 2 months ago

In the newest version, the problem came back.

jotego commented 2 months ago

Turbo outrun has graphical glitches. (Mister fpga) Reproduce:

* Start game

* Go into gameplay

image

image

That is a different issue from the one in this thread

sir-codealot commented 1 month ago

Have the same issue with the current version 8533440 . Also it worked fine for me since November 2023 with every release. but with the latest one I just see the road.