Changeset 14501


Ignore:
Timestamp:
Apr 18, 2015, 9:45:37 PM (6 years ago)
Author:
mikedld
Message:

Send dummy events each second to prevent excessive memory use (inspired by xnyhps)

I'm not that good in Mac programming it seems as I can't figure out why
doesn't the memory being allocated by frequent NSNewBitmapBackingStore
(system internal) calls being freed even if I wrap the code into
@autoreleasepool explicitly. Disabling animations does slow it down but
not stop. This commit is certainly a dirty fix but it seems to work in
my case and I hope it helps a few other people while we wait for a
proper solution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r14343 r14501  
    591591    [[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSEventTrackingRunLoopMode];
    592592   
     593    #warning FIXME: https://forum.transmissionbt.com/viewtopic.php?f=4&t=16519
     594    [NSEvent startPeriodicEventsAfterDelay: 0 withPeriod: 1];
     595
    593596    [self applyFilter];
    594597   
Note: See TracChangeset for help on using the changeset viewer.