391
Discussion - EVE / Re: BT81x and VERTEX2F
« on: February 16, 2019, 06:48:27 PM »
The goal is to avoid the shifting of bits entirely.
We now have this:
01xxxxxx xxxxxxxx xyyyyyyy yyyyyyyy
This means that the x-coordinate has to be shifted.
Changing the format to this would turn that shifting into a copy operation:
01xxxxxx xxxxxxxx 00yyyyyy yyyyyyyy
This is of couse a non-issue with any static coordinates since the pre-processor should turn that into 32 bit constants already.
This is a bottleneck however when you try to animate things and more than a handfull or coordinates need to be calculated on the fly from variables.
We now have this:
01xxxxxx xxxxxxxx xyyyyyyy yyyyyyyy
This means that the x-coordinate has to be shifted.
Changing the format to this would turn that shifting into a copy operation:
01xxxxxx xxxxxxxx 00yyyyyy yyyyyyyy
This is of couse a non-issue with any static coordinates since the pre-processor should turn that into 32 bit constants already.
This is a bottleneck however when you try to animate things and more than a handfull or coordinates need to be calculated on the fly from variables.