but let's return to @TriMesh Naomi2 dispute.
I've looked at Ninja lib source code (library from Katana SDK which does all the 3D math), and found there Spot light routine, it is ~130 lines of SH4 assembly code. how many CPU clocks it took? I'm lazy to calculate it precisely, SH4 is superscalar CPU and may execute 2 simple instructions at once, but there is also "heavy" instructions like division or square root which may took 10-20 or more clocks, so lets assume this routine execution time is same 130 SH4 clocks.
then do some math: 200'000'000 clock/sec / 130 = 1`538`461 -- this is the number of vertices per second to which SH4 may apply single spot-light (and nothing more).
okay, but how about per frame @60fps ? 1`538`461 / 60 = 25'641
great, but what about 6 light sources (as usually it is in Naomi2 games) ? 25'641 / 6 = 4273
yes, only 4K vertices, not 40K lol
I've looked at Ninja lib source code (library from Katana SDK which does all the 3D math), and found there Spot light routine, it is ~130 lines of SH4 assembly code. how many CPU clocks it took? I'm lazy to calculate it precisely, SH4 is superscalar CPU and may execute 2 simple instructions at once, but there is also "heavy" instructions like division or square root which may took 10-20 or more clocks, so lets assume this routine execution time is same 130 SH4 clocks.
then do some math: 200'000'000 clock/sec / 130 = 1`538`461 -- this is the number of vertices per second to which SH4 may apply single spot-light (and nothing more).
okay, but how about per frame @60fps ? 1`538`461 / 60 = 25'641
great, but what about 6 light sources (as usually it is in Naomi2 games) ? 25'641 / 6 = 4273
yes, only 4K vertices, not 40K lol
