Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Hi! I'm planning to write a shoot'em up sidescroller. I have a big problem with the graphics though. I really wan't the game to run smooth, but i can't even get the simpliest sprite to move without lagging. It moves smooth if i make it to move automaticly across the screen. But as soon as i add DirectInput and let the sprite be moved by the arrow keys it starts to lag. If one for example press the right arrow, the sprite would move smooth for less then a second and the start lagging. If one press and hold right and then at the same time press and hold for example space (which is unassigned), the sprite will stop completely. If anyone have a solution to this it would be greatly appreciated.