There may be a middle ground.  Perhaps we could throttle updates when the app 
is not in focus or something like that.  I like to keep the gitx window open on 
my second display so I can see at a glance what's changing.  Requiring the user 
to focus on the window and away isn't always the best option.  It's one of the 
worst things about TextMate in my opinion.  Listening to the event stream 
doesn't seem to be very expensive.  We just need to be careful what we do in 
response.

I believe there's also a way to poll the fs events system for updates in the 
last x seconds instead of having them pushed into the app, but my memory is a 
bit rusty here.  Also, I don't know if we'd really get a win by doing so.

-dave

On Mar 14, 2010, at 6:00 PM, Kevin LaCoste wrote:

> Hey guys, regarding this ticket:
> 
> http://gitx.lighthouseapp.com/projects/17830/tickets/47-provide-an-option-to-automatically-refresh-on-an-interval
> 
> It looks like a lot of work/effort has gone into this feature but I'm not 
> sure FSEvents is the proper way to handle this. Does GitX really need to be 
> updating in the background while nobody is paying attention to it? My initial 
> thought is that this should be handled by an automatic refresh on activation. 
> NSApplication sends out a notification when it becomes active which sounds 
> like the perfect place to fire off a refresh.
> 
> If I'm missing something that would make constant updates a better solution, 
> please let me know.
> 
> Kevin
> 

Reply via email to