seantronsen / pvt

GNU General Public License v3.0
0 stars 0 forks source link

Fix the 2D Plot Demo #6

Closed seantrons closed 6 months ago

seantrons commented 7 months ago

There is likely an error with the math for the 2D demo which causes a "frame skip" to occur periodically, even at slow frame rates with fast processing speeds. As such, the frame skip likely isn't really and is probably some manifestation of a precision / math error.

seantrons commented 7 months ago

Debugging efforts should account for the refresh rate of the employed monitor / display and also look into enabling / disabling the Qt vsync settings.

seantrons commented 6 months ago

It's likely just an issue with the phase angle calculations that are used to "animate" the sinusoid since they rely on floating point arithmetic. Decimal would be too slow and it honestly functions "well enough" that I'm not worried about it.

If someone else wants to mess around with this, that's fine. Closing for now.