tammojan / modeltelescoop

Software voor modeltelescoop in Science Hub
Apache License 2.0
1 stars 0 forks source link

Optimise Blitting of Targets #13

Closed stefanlinden closed 3 years ago

stefanlinden commented 3 years ago

Currently in renderskyplot.py, the union of the pygame Rects of the newly blitted targets (sun, pulsar, etc.) with their previous blitted Rect is propagated through by copying the latter. I.e., the total screen area that is refreshed each frame slowly grows as the reticle and the targets move. This results in a slowdown of the application over time similar to a memory leak.