3 ms·
The demoscener in me disagrees with the statement entirely. ;-) From the article: It requires 3 inputs, the first video, the second video being turned to, and
by userbinator 9y ago
The demoscener in me disagrees with the statement entirely. ;-)
From the article:
It requires 3 inputs, the first video, the second video being turned to, and a typically solid color/image that represents the back of the page
This effect probably doesn't require that much processing power since all it needs to do is switch (up to) twice on each scanline, from the pixels of A to "back" to B; the switching points themselves can be calculated straightforwardly since they vary linearly. Making the "back" itself be another video doesn't add much extra processing. Here's a visual schematic of one frame halfway through the effect (- = first video, + = second video, b = back):
++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
---------------+++++++++++++++
---------------b++++++++++++++
---------------bbb++++++++++++
... ...
---------------bbbbbb+++++++++
---------------bbbbbbbb+++++++
---------------bbbbbbbbbb+++++
---------------bbbbbbbbbbbb+++
------------------------------
As a rough guess, it's probably doable in around a dozen extra calculations per scanline, which in NTSC is slightly less than 64us. Assuming (a very generous) 100 clock cycles for those calculations, and hardware which has a video mux so the software doesn't have to copy the pixels, that turns out to require... slightly less than 1.6MHz.
Of course, if your hardware doesn't have a mux and you need to copy the pixels between various buffers, then the requirement goes up around an order of magnitude... but probably still doable on something like a 33MHz 386.
- mattnewport 9y agoYeah, my thought reading the article was that an Amiga would probably be capable of this effect. I feel like I've seen it some old demos in fact.