Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualDarkHorseKnight

Posted 03 February 2012 - 04:24 PM

Oh thank god! Posted Image at leasts that's fixed I will remember now to draw and update in the same thread for anything that is art related but there is another problem the game lags on every movement of all objects on the screen accept the cloud for some reason.

I think its because of the drawing taking alittle while to blit ? would I be correct on that or wrong?

heres my code with the changes

http://pastebin.com/1hQjgZJN

I also tried what you said but in a different way where I put all blits and sdl_flip into the main while loop and then the same thing occurred so I assumed it was wrong and went back to threads you see

#4DarkHorseKnight

Posted 03 February 2012 - 04:21 PM

Oh thank god! Posted Image at leasts that's fixed I will remember now to draw and update in the same thread for anything that is art related but there is another problem the game lags on every movement of all objects on the screen accept the cloud for some reason.

I think its because of the drawing taking alittle while to blit ? would I be correct on that or wrong?

heres my code with the changes

http://pastebin.com/1hQjgZJN

I also tried what you said but in a different way where I put all drawing into the main while loop and then the same thing occurred so I assumed it was wrong and went back to threads you see

#3DarkHorseKnight

Posted 03 February 2012 - 04:21 PM

Oh thank god! Posted Image at leasts that's fixed I will remember now to draw and update in the same thread for anything that is art related but there is another problem the game lags on every movement of all objects on the screen accept the cloud for some reason.

I think its because of the drawing taking alittle while to load would I be correct on that or wrong?

heres my code with the changes

http://pastebin.com/1hQjgZJN

I also tried what you said but in a different way where I put all drawing into the main while loop and then the same thing occurred so I assumed it was wrong and went back to threads you see

#2DarkHorseKnight

Posted 03 February 2012 - 04:20 PM

Oh thank god! Posted Image at leasts that's fixed I will remember now not to draw and update in the same thread for anything that is art related but there is another problem the game lags on every movement of all objects on the screen accept the cloud for some reason.

I think its because of the drawing taking alittle while to load would I be correct on that or wrong?

heres my code with the changes

http://pastebin.com/1hQjgZJN

I also tried what you said but in a different way where I put all drawing into the main while loop and then the same thing occurred so I assumed it was wrong and went back to threads you see

#1DarkHorseKnight

Posted 03 February 2012 - 04:18 PM

Oh thank god! :D at leasts that's fixed I will remember now not to draw and update in the same thread for anything that is art related but there is another problem the game lags on every movement of all objects on the screen accept the cloud for some reason.

I think its because of the drawing taking alittle while to load would I be correct on that or wrong?

heres my code with the changes

http://pastebin.com/1hQjgZJN

PARTNERS