raydac / zxpoly

a multi-CPU ZX-Spectrum 128 concept platform
GNU General Public License v3.0
91 stars 9 forks source link

Something wrong in the graphics of Illusion DEMO #59

Closed Haroldo64 closed 2 years ago

Haroldo64 commented 2 years ago

Hi, something is no painted in the screen or there is a black rectanguar area that is wrong in this part of the demo. The dot field is partially missing: ILLUSION.zip

ggyg

Untitled 4

Alessandro1970 commented 2 years ago

The usual problem is seen in a later part, as in the photo the small balls are not seen moving in the part above the spiral, my be the ULA ?

https://zxart.ee/rus/soft/demoscene/demo/illusion/

Untitled 2

Alessandro1970 commented 2 years ago

...even shortly thereafter, it should be the usual cause, the usual bug: Untitled 4

Alessandro1970 commented 2 years ago

...mmmm :roll_eyes:

Untitled 9

But this part works well even if there is no Pentagon ! :laughing:

raydac commented 2 years ago

looks like that problem in some desync between paint and emulator screen blink (emulator written in Java and it accumulates all changes in some off-screen image and draw it by command), I have added some configurable offset for screen blink, you can try snapshot 2.2.4

Alessandro1970 commented 2 years ago

Great, it works well. there is a strange black square on the right, but it's very better, better than fuse on last demoball.

On my Mac armcpu: Untitled 2

raydac commented 2 years ago

I guess it is possible to select better screen blit tact in preferences (requires restart) to fix it, the default value I found mainly heuristically

Alessandro1970 commented 2 years ago

I can see all the little balls, as in screenshot, only if I set blink frame to 23,333, but the the others don't work: ee

Alessandro1970 commented 2 years ago

...wait a moment set: 1) Blink frame 38,007 2) Important is that INT/frame = 1 this takes an important role with BLINK, if int/frame is more than 1 in gryzor you will not see flashing stars and Illusion demo will not work !!!

gryzor works well, stars blink ok illusion demo: all little balls are visible, only a little missing dot filed but all the demo works !

fgr ght jrf

fecv fgt

Alvarez81 commented 2 years ago

Blink frame 38,007 Important is that INT/frame = 1 this takes an important role with BLINK, if int/frame is more than 1 in gryzor you will not see flashing stars and Illusion demo will not work !!!

This works quite good for me too.

Alessandro1970 commented 2 years ago

...don't ask me why 38,007 ! I have tried so many times, probably there will be a better value.

PakkunKinoppi commented 2 years ago

I used:

Blink frame 38,007 Important is that INT/frame = 1 this takes an important role with BLINK, if int/frame is more than 1 in gryzor you will not see flashing stars and Illusion demo will not work !!!

These are good for me too ! Thanks

Alvarez81 commented 2 years ago

Hi, is there any news ? I saw that something in the code is changed...

raydac commented 2 years ago

@Alvarez81 not yet, I am trying to make emulation of correct timing but without big success yet

Alvarez81 commented 2 years ago

Ok, something about timings was found here, but I do not know if this could help about: http://www.zxspectrum4.net/op_timing.php http://www.zxdesign.info/memContRevision.shtml https://scratchpad.fandom.com/wiki/Contended_memory#Timing_differences Bye ...we like a lot your ZxPoly !

raydac commented 2 years ago

I made some rework of render and you can try snapshot, the problem with demos that they are oriented to TV and expecting that we have ray-tracing so that they dynamically changing already TV-rendered area during the same frame and I render screen in the end of frame I have removed blink tact parameters and replaced by timing profile chooser

Haroldo64 commented 2 years ago

Great it works well, thank you.