lesson 8 lagging

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
krrice
Posts: 6
Joined: February 7th, 2012, 2:51 am

lesson 8 lagging

Post by krrice » April 18th, 2012, 11:37 pm

Hi chili, I want to thank for the great tutorials they have helped a lot. The problem I am having is when the game is running the face doesn't seem to be moving smoothly and when the game over image appears the face starts moving slow. I have looked over my code and don't see anything wrong. Could it be a video card issue.

Dlotan
Posts: 32
Joined: April 10th, 2012, 4:58 pm

Re: lesson 8 lagging

Post by Dlotan » April 18th, 2012, 11:46 pm

Its the framework which isnt perfect yet. Theres a change to it in lesson 13 which makes it a lot more smooth

krrice
Posts: 6
Joined: February 7th, 2012, 2:51 am

Re: lesson 8 lagging

Post by krrice » April 19th, 2012, 12:07 am

Thanks Dlotan I am about half way through 13 right now.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: lesson 8 lagging

Post by chili » April 19th, 2012, 2:07 pm

Hey krrice, if you don't mind me asking, what sort of system are you using to run the compiled program? (gfx card, cpu, os)
Chili

Chipolata
Posts: 6
Joined: January 10th, 2013, 1:41 pm

Re: lesson 8 lagging

Post by Chipolata » January 22nd, 2013, 2:47 am

Just completed lesson 8 and my face movements are slowed down when GameOver is drawn. Is there a fix in lesson 13? Spose i'l find out soon!

(running ATI Radeon 5800)

--Andy

edit: scrap that, I ran the executable with Visual Studio closed and it works fine.

Musi
Posts: 106
Joined: November 25th, 2012, 1:06 am

Re: lesson 8 lagging

Post by Musi » January 22nd, 2013, 7:21 am

There should be a bit at the top of Visual C++ that says "Debug", if you click the drop down menu and change it to "Release" it should run as if you just ran the executable. Debug mode can slow the program, but still use it when writing the code of course.

And yeah, the PutPixel function is pretty inefficient but Chili does change it and explains why.
Musi

There are 10 types of people that understand binary.
Those that do, and those that don't.

Chipolata
Posts: 6
Joined: January 10th, 2013, 1:41 pm

Re: lesson 8 lagging

Post by Chipolata » January 23rd, 2013, 12:55 am

Just to the right of the green play button? Mine is on Release and I'm on video 9 now and my box moves around quite slowly but when the Visual Studio is closed and I ran the the executable it's fine.

Post Reply