SDL Mouse movement, lagging

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
lalacomun
VS Setup Wizard
VS Setup Wizard
Posts: 114
Joined: Wed Dec 28, 2011 10:18 pm
Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
Programming Language of Choice: C++
Location: Argentina
Contact:

SDL Mouse movement, lagging

Post by lalacomun »

So as the title sais, when i use timers, to regulate my FPS on my game, as soon as i start moving my mouse, aver the aplication, it starts lagging, i tired to disable the Threded optimization on the Nvidia control panel, but still nothing, any suggestions??? :|
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: SDL Mouse movement, lagging

Post by dandymcgee »

I actually remember having this exact issue quite a while back when developing in SDL. Never did come up with good solution, but I would imagine if you threaded your event handling separately from your rendering it would solve the problem.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply