Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What module tweaks do I need to make for perfect VSync in windowed mode?

0
Posted

What module tweaks do I need to make for perfect VSync in windowed mode?

0

*** This is now obsolete because Blitz Research have fixed the module themselves. *** A. In windowed mode, you may notice some vertical tearing. This is because BlitzMax does not perform any kind of waiting for vertical refresh even with Flip 1 or -1! Therefore if you toggle the Game Framework VSync option in windowed mode, you will not notice any difference. To obtain perfect VSync in windowed mode you have two choices as follows: a) In CommonTypes.bmx look for the TGame.PostDraw() method. There is a comment about Skidracer’s module tweak and a line of code commented out underneath. If you uncomment this line, ccVWait() will be called in windowed mode. This works well on some faster PCs but may result in a permanent tear somewhere near the top of the screen on slower PCs. The best solution is b) as follows. b) You need to tweak two of BlitzMax’s modules (until BRL apply this tweak themselves, if ever). Remember, until BRL apply these tweaks themselves (may require a Game Framework upd

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123