Tk Source Code

Artifact [29bfb593]
Login

Artifact 29bfb59340d07de5532286add5c31f8dc1ca684c122f1723a210516da8b4db66:

Ticket change [29bfb593] - Ticket [06f3922f] High CPU usage status still Open with 4 other changes by marc_culler 2019-04-16 21:07:21.
D 2019-04-16T21:07:21.912
J icomment @nab\s--\sOK.\s\sI\slooked\sat\sit.\s\sAnd,\samazingly\senough,\sI\sfound\ssomething.\s\sIt\sturns\r\nout\sthat\sit\sis\snot\sApple's\sfault\sthat\s[NSView\sdrawRect]\sis\salways\scalled\swith\r\nthe\sfull\sbounding\srectangle\sof\sthe\sNSView.\s\sIt\sis\smy\sfault.\s\sI\sthink\sI\smight\r\nhave\sfixed\sthat\sin\sthe\sbranch\r\n[https://core.tcl.tk/tk/timeline?r=bug-06f3922f8b|bug-06f3922f8b].\r\n\r\nWhen\sI\sremoved\sall\sof\sthe\sstrange\sand\sunnecessary\snesting\sfrom\sthe\sscript\syou\r\nposted\sin\sthe\sreport\sand\ssimply\sgridded\sall\sof\sthe\sbuttons\sas\schildren\sof\sone\r\nframe\sthen\sI\swas\snot\sable\sto\sget\sthe\sCPU\susage\smuch\sabove\s10%\seven\swhen\swildly\r\nmoving\sthe\smouse\saround\slike\sno\sreal\suser\swould\sever\sdo.\s\sThe\ssame\skind\sof\r\ncrazy\smouse\saction\sin\sa\sterminal\swindow\suses\s5%\sCPU.\s\sSo\sI\sdon't\sthink\swe\sare\r\ngoing\sto\sdo\smuch\sbetter\sthan\sthat.\s\sI'll\sattach\sthe\ssimplified\sscript.\r\n\r\nWARNING:\sthis\sneeds\sa\slot\sof\stesting\sin\sa\slot\sof\sdifferent\ssituations\sbefore\sit\r\ncan\sbe\smerged.\s\sWe\sneed\sto\smake\ssure\swe\saren't\screating\snew\sgraphics\sartifacts.\r\nMy\sfirst\sattempt\swould\screate\sgarbage\swhen\smoving\scanvas\sitems\squickly.\s\sThere\r\ncould\sbe\slots\sof\sother\sthings\slike\sthat.
J login marc_culler
J mimetype text/x-fossil-wiki
J username Marc\sCuller
K 06f3922f8b89d455d589544d1008e6d8f48c6f49
U marc_culler
Z cc60f7d0d8ea7665ee1c3a4a061fae39