Optimizing transition/movement smoothness for a 2D flash game

后端 未结 8 1116
星月不相逢
星月不相逢 2020-12-10 22:42

Update 6:

Fenomenas suggested me to re-create everything as simple as possible. I had my doubts that this would make any difference as the algorithm

8条回答
  •  执念已碎
    2020-12-10 23:19

    I've answered another question relating to this issue, read below:

    I feel your pain as I'm currently in the trenches developing my own game. At default settings, the Flash renderer produces horrible screen tearing / v-sync issues, regardless of what code you produce.

    This is why I was pleased to have found the most simple, elegant answer, that wasn't re-factoring code (which doesn't help a single bit, the problem is the Flash player, not code).

    Just enable Hardware Acceleration in your Publish Settings. There's two different options:

    Level 1: Direct; and Level 2: GPU.

    Read more about it at the official documentation: Specify publish settings for SWF files, and decide what option is best for your game.

    Target market does play a factor here, if it's a serious game for gamers, you don't need to worry about possible performance issues, as most gamers have GPU's.

    This article did not provide me with the solution specifically, but lead me in the right direction. BUT, if your game is going to be in a browser window, you might have to use the same technique of setting wmode to direct or gpu as well.

提交回复
热议问题