Uncertain rendering of huge WPF visual effects - any solutions?

When rendering huge visual effects in WPF, the visual is distorted and distorted with increasing coordinates. I assume it has something to do with the floating point data types used in the visualization pipeline, but I'm not quite sure. In any case, I am looking for a practical solution to the problem.

To demonstrate what I'm talking about, I created an example application that only contains a custom control built into ScrollViewer that draws a sine curve.

alt text

Here you can see that the figure is suitable for double values ​​<= 2 ^ 24 (in this case, the value of the horizontal coordinate), but from this point it is distorted.

alt text

2 ^ 25, , .

, "" , . , , - , - , , .

- , ?

+3
1

WPF.

, - (-Inf, + Inf) 32 (float)/64 (double) . , , 2 ^ 30.

64- (1), -9,223,372,036,854,775,808 +9,223,372,036,854,775,807.

(, , ).

0

Source: https://habr.com/ru/post/1771195/


All Articles