Sign in to follow this  

Unity SDL window move event issues

This topic is 3442 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I suppose I should introduce myself. I'm an aspiring indy game developer (go ahead, laugh). I haven't been taking too big a part in the community yet since I don't have much to show. Anyways, I bumped into a technical issue in the engine I'm working on with SDL and I'm hoping someone with experience will know whats happening and what to do. So right now, I'm using a double buffer since that's what all the tutorials told me to use. I'm unfamiliar with the alternatives but I'm pretty happy with double buff. My code runs an indefinite loop that blanks the screen, renders everything, and then flips the screen using SDL_Flip. My sprite is 12 frames and the code will wait so many milliseconds before switching over to render the next frame. My engine doesn't use the halt function because I wanted everything to be frame rate independent. The problem I'm having is whenever I move the window. The game pauses and the screen stops updating, but when I let go, it'll suddenly render all the frames that it was suppose to have rendered while I was moving the window in very quick succession. I have a bunch of theories as to why this happens but that's pretty unimportant (although if someone could explain to me why, that'd be great). I just want to be able to pause my engine entirely when the window is being moved. Thanks in advance.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Similar Content

    • By loyalsheep
      Hey guys!
      Check out the trailer of Airavat. It's a minimalist, space survival game (and hard, very hard) 
      Download on GooglePlay: Airavat
       
    • By anomalystudiospt
      Hey, we are new around here!
      Our team spent the last year developing a prototype game called Rise of The Fey, a game that focuses on a dramatic story with a fast paced gameplay.
      Rise of The Fey is a third-person action-adventure RPG set within a fantasy world called Perrah. In Rise you control Kall, a young spaunian looking for revenge after the death of his beloved.

      We would appreciate if you could take a look at our stuff, tell us what you think and possibly help us out on Indiegogo.
      The prototype is in portuguese, sorry about that!
      Have a good one!
    • By juglar
      Hi guys, we are developing a game called BiteOff! based on Zombies topic. BiteOff! is based on a game strategy mechanics, free to play, where the player has a bunch of zombies and he can distribute them along the map landscape to be able to bite and transform all humans into each level. Humans are controlled by artificial intelligence and they differ each other on capabilities based on different weapons that give them three different levels of aggressiveness to defend against the zombies. The zombies are also presented in three types and they are differentiated by their attack, speed, strength and resistance abilities. Through different achievements, (time to eat all humans, score, among others) the player can access four extra skills that can enhance your attack in real time on next levels as power-ups.
      We are launching a crowdfunding campaign in kickico and we need some helps please visit us on the crowdfunding page https://www.kickico.com/es/campaigns/17824/biteoff-the-videogame 
      Twitter @biteoffthegame
      Facebook
      Clickme!
      Website 
      Clickme!
    • By Lord McMutton
      The world of Ethios is held aloft by massive trees known as the Pillars.
  • Popular Now