Programming 2D Games

The official forum for "Programming 2D Games" the book by: Charles Kelly

It is currently Fri Feb 28, 2020 8:05 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Window is very laggy
PostPosted: Fri May 12, 2017 10:15 pm 
Offline

Joined: Wed Mar 22, 2017 10:33 pm
Posts: 14
Hi. I have been using this book for soem time, but took a long break. Now im back, and I just remember that my window is very laggy. It does not respond and I have to close the window via task manager. Ive tried adjusting the min frame time and it doesnt work. Whats wrong?


Top
 Profile  
Reply with quote  
 Post subject: Re: Window is very laggy
PostPosted: Sat May 13, 2017 11:23 am 
Offline
Site Admin
User avatar

Joined: Sat Jan 28, 2012 4:36 pm
Posts: 554
I have observed this behavior when programs contain extra loops. The game engine is already executing a loop for us. The update and raw methods are called every frame.

_________________
Professor Kelly


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group