OpenBoard-org / OpenBoard

OpenBoard is a cross-platform interactive whiteboard application intended for use in a classroom setting.
https://openboard.ch/
GNU General Public License v3.0
2.35k stars 423 forks source link

[Bug] When I draw the handwriting, the existing PolygonItems will be repainted #1108

Closed NullRefEx-WZC closed 3 days ago

NullRefEx-WZC commented 3 days ago

I see that the UBGraphicsPolygonItem is initialized with NoCache in UBGraphicsItemDelegate.cpp line 77. When I draw another handwriting, the existing PolygonIems in Scene will execute the paint function, as a result the handwriting is drawing slower and slower. I'm going to change the CacheMode to DeviceCoordinateCache or ItemCoordinateCache, the drawing speed is improved, but the handwriting is fuzzy.