FPS is too high,and the mouse flicker?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
bobdos
Prole
Posts: 6
Joined: Sat Feb 20, 2010 2:47 pm

FPS is too high,and the mouse flicker?

Post by bobdos »

when i play a .love game, some times the FPS is low, sometimes the FPS is too high,

if the FPS is above 400,then the mouse flicker

what is the problem?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: FPS is too high,and the mouse flicker?

Post by Robin »

This might be because those games don't call love.timer.sleep(), and they don't give the CPU any rest. I'm not sure though.
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: FPS is too high,and the mouse flicker?

Post by bartbes »

And you might want to make sure vsync is on, vsync is underrated.
bobdos
Prole
Posts: 6
Joined: Sat Feb 20, 2010 2:47 pm

Re: FPS is too high,and the mouse flicker?

Post by bobdos »

bartbes wrote:And you might want to make sure vsync is on, vsync is underrated.
let me have a try, thanks
bobdos
Prole
Posts: 6
Joined: Sat Feb 20, 2010 2:47 pm

Re: FPS is too high,and the mouse flicker?

Post by bobdos »

Robin wrote:This might be because those games don't call love.timer.sleep(), and they don't give the CPU any rest. I'm not sure though.
let me have a try, thanks
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: FPS is too high,and the mouse flicker?

Post by TechnoCat »

I was getting my mouse to flicker running someone else's code just now. They were calling toggleFullscreen() every frame.
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: FPS is too high,and the mouse flicker?

Post by kalle2990 »

TechnoCat wrote:They were calling toggleFullscreen() every frame.
:?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests