lesson 8 lagging
lesson 8 lagging
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.
Re: lesson 8 lagging
Its the framework which isnt perfect yet. Theres a change to it in lesson 13 which makes it a lot more smooth
Re: lesson 8 lagging
Thanks Dlotan I am about half way through 13 right now.
Re: lesson 8 lagging
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
Re: lesson 8 lagging
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.
(running ATI Radeon 5800)
--Andy
edit: scrap that, I ran the executable with Visual Studio closed and it works fine.
Re: lesson 8 lagging
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.
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.
There are 10 types of people that understand binary.
Those that do, and those that don't.
Re: lesson 8 lagging
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.