DIDDY2 – fixedrate/deltatime – causing jittering and pauses when moving

About Monkey 2 Forums Monkey 2 Programming Help DIDDY2 – fixedrate/deltatime – causing jittering and pauses when moving

This topic contains 2 replies, has 2 voices, and was last updated by  Amon 2 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15443

    Amon
    Participant

    In my ships update method I use this:

    Within the GameScreen I feed fixedrate to the Ships update class as a parameter.

    Now, whether I’m using fixedrate or delta, when moving the ship, it begins to stop for about half a second then starts moving again. This is not normal behavior.

    When for instance I remove multiplying by fixed rate or delta I do not get this stuttery movement with the ship.

    Can anyone suggest what could be wrong?

    #15454

    therevills
    Participant

    Could you post more code? What type of variable is x and sp?

    #15458

    Amon
    Participant

    x holds the player position as a float and sp is the speed of the player’s movement as a float.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.