Commit graph

3 commits

Author SHA1 Message Date
Christophe de Dinechin
6218993e11 variables: Store and recall BMP files
Store files and objects as BMP files.
Recall BMP files as graphical objects.

Also adjust `Show` to not add a border to input graphical objects.

Fixes: #867

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-04-08 21:28:15 +02:00
Christophe de Dinechin
9be0f00eb6 simulator: Avoid piling up QT draw requests
Make sure that we capture consistent pixmaps, which we can do on the
RPL thread, and only defer the transfer of the pixmap to the main
thread, which is fast.

Additionally, optimize updates by doing a byte-by-byte xor comparison
in order to see which bytes actually changed. This minimizes the cost
on the RPL thread to update the pixmap.

This makes it possible to have a much better screen behaviour for the
`CBench` benchmark, where it updates it regularly on the screen while
not slowing things down too much.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-03-08 16:18:11 +01:00
Christophe de Dinechin
aa917fa636 tests: Add plotting test for every decimal function
This plots every single function we have and records the result.

Fixes: #734

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-01-20 20:43:45 +01:00