Graphics bug in Hybris

User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Graphics bug in Hybris

Unread post by LamerDeluxe »

bPQmPmE.jpg
bPQmPmE.jpg (2.02 MiB) Viewed 4081 times

It works correctly in WinUAE. ROM is from Amiga forever. Config is Amiga 500.

Can anyone here confirm the same problem?
LeftEmpty
Posts: 148
Joined: Sun May 24, 2020 6:47 pm
Has thanked: 4 times
Been thanked: 4 times

Re: Graphics bug in Hybris

Unread post by LeftEmpty »

Same little glitch here on two different versions.
Nice catch, might I add, I totally hadn't noticed it :O
User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Graphics bug in Hybris

Unread post by LamerDeluxe »

Thanks for confirming! I wonder what could be causing it.
User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Graphics bug in Hybris

Unread post by LamerDeluxe »

I've just found a clue in an interview:
The biggest effort on the sprites was the score sprites "on top of everything". The rest of the sprites are grouped in such a way that no problems occur in practice.

The score panel at the top of the screen uses a nice trick where sprites 0 and 1 have their sprite data set and are repositioned horizontally across the screen "racing the beam". Did you come up with that effect or had you seen it in another game?

Good description of what actually goes on technically :-)

This was Torben's idea and was not seen on the Amiga before. There was an immense amount of fiddling to make this fit. It is essentially timed down to the exact processor cycle ;-)
Seems like the score in Hybris serves as a nice CPU timing test.

EDIT: Ooh, I think I have figured it out, IIRC the clock frequency of the Minimig core isn't exactly the same as that of a real Amiga. That would cause a timing error when racing the beam.
LeftEmpty
Posts: 148
Joined: Sun May 24, 2020 6:47 pm
Has thanked: 4 times
Been thanked: 4 times

Re: Graphics bug in Hybris

Unread post by LeftEmpty »

You gotta report those cool findings on github!
User avatar
Hodor
Posts: 142
Joined: Mon May 25, 2020 8:29 am
Has thanked: 378 times
Been thanked: 30 times

Re: Graphics bug in Hybris

Unread post by Hodor »

LeftEmpty wrote: Sun Jul 05, 2020 8:24 pm You gotta report those cool findings on github!
Agreed. It´s the best way to get this issues fixed eventually.
User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Graphics bug in Hybris

Unread post by LamerDeluxe »

LeftEmpty wrote: Sun Jul 05, 2020 8:24 pm You gotta report those cool findings on github!
Ah yes, good point, I'll do that tomorrow, it is already late over here.
User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: Graphics bug in Hybris

Unread post by limi »

For those wondering about which interview it was from:

https://codetapper.com/amiga/interviews ... -pedersen/

He was 16 years old at the time he wrote the game.
User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Graphics bug in Hybris

Unread post by LamerDeluxe »

limi wrote: Mon Jul 06, 2020 7:17 am For those wondering about which interview it was from:

https://codetapper.com/amiga/interviews ... -pedersen/

He was 16 years old at the time he wrote the game.
Yes, that is correct. Isn't it amazing that they made one of the most professional, polished, arcade-like games on the Amiga, in their spare time, at that age?

EDIT: I've just added an issue for this here: https://github.com/MiSTer-devel/Minimig ... /issues/73
Post Reply