Snapping to large grid size cause blueprint to jitter
Posted: Fri Nov 13, 2020 8:09 pm
When using very large grid sizes such as 2147483647=2^31-1, placing blueprints at y=-1 or -2 causes jitter and places the blueprints incorrectly. The same does not happen for positive y-values or y-values that are further away from 0. Slightly smaller grid sizes such as 2147483645 cause the gaps to become larger. This looks like some kind of internal integer overflow.
In case you consider this not worth fixing, it would make sense to constrain the grid size to e.g. 2^30.
On a further note, the reason to use this large grid size is to make a blueprint tileable only in x-direction. Hence I request the feature to disable tileability in one direction more properly. Concretely, I propose to allow a grid size of 0, with the meaning that a blueprint is not tileable in that direction. In fact, this is semantically correct, since the only multiple of 0 is 0 itself; so allowing placement only at the integer multiples of the grid size means for a grid size of 0 exactly non-tileability in that direction.
Should this be posted as separate suggestion?
Best,
PhiPro
In case you consider this not worth fixing, it would make sense to constrain the grid size to e.g. 2^30.
On a further note, the reason to use this large grid size is to make a blueprint tileable only in x-direction. Hence I request the feature to disable tileability in one direction more properly. Concretely, I propose to allow a grid size of 0, with the meaning that a blueprint is not tileable in that direction. In fact, this is semantically correct, since the only multiple of 0 is 0 itself; so allowing placement only at the integer multiples of the grid size means for a grid size of 0 exactly non-tileability in that direction.
Should this be posted as separate suggestion?
Best,
PhiPro