Overview Features Instructions Performance Forum Downloads Products Reseller Contact

Welcome to the Apollo Forum

This forum is for people interested in the APOLLO CPU.
Please read the forum usage manual.
VISIT APOLLO IRC CHANNEL



All TopicsNewsPerformanceGamesDemosApolloVampireCoffinReleases
Documentation about the Vampire hardware

Slow P96ReadPixelArray

Manfred Bergmann

Posts 88
04 Mar 2019 18:52


Hi.

I was trying a bit grabbing RGB data from a P96 screen.
So I used p96ReadPixelArray from a new created screen, 640x480x8 which should be ~300k.
This P96 function takes ~30 ticks until returns.
Whereas writing this to a file only takes ~7 ticks.

Now my questions:
Is ticks (DateStamp) the right thing to measure this?
Why is this function so slow, it seems to mostly be a mem copy?
I'm using this under AmigaE but I doubt it'll be a lot fast in C.
Are there alternatives to using this function?

Manfred


Manfred Bergmann

Posts 88
05 Mar 2019 15:59


It seems that P96 uses rtg.library. Is there some p2c involved?


Gunnar von Boehn
(Apollo Team Member)
Posts 3618
05 Mar 2019 18:42


what do you use this function call for?
To save a screenshot ?


Manfred Bergmann

Posts 88
05 Mar 2019 19:04


Yes

posts 4