Tk Source Code

Artifact [2e83b153]
Login

Artifact 2e83b153e4ff4fdfe39eebde3303a2d2f9fb1afecb46ab5e761b1a981f176e6a:

Ticket change [2e83b153] - Ticket [06f3922f] High CPU usage status still Open with 4 other changes by marc_culler 2019-02-13 13:23:24.
D 2019-02-13T13:23:24.851
J icomment To\sApple's\sWindow\smanager\sa\sTk\swindow\sconsists\sof\sone\sNSWindow\scontaining\sone\r\nNSView.\s\sTk\sis\sresponsible\sfor\sdrawing\sits\swidgets\sinside\sthe\sView.\sWhen\syou\r\nmove\syour\smouse\sinside\sthe\sView,\sApple\sasks\sthe\sView\sto\sredraw\sa\sdamage\sregion,\r\nby\scalling\sthe\sdrawRect\smethod\sof\sthe\sview.\s\sAs\sI\sunderstand\sit,\swhat\shappens\sis\r\nthat\sApple\spasses\sthe\sbounding\srectangle\sof\sthe\sView\sto\sits\sdrawRect\smethod.\s\sSo\r\nTk\sresponds\sby\sredrawing\severything\sthat\smeets\sthat\srectangle,\si.e.\sby\sredrawing\r\neverything\sinside\sthe\swindow.\s\sIf\sApple\swere\sto\sask\sfor\supdates\sonly\sin\sa\ssmall\r\nregion\scontaining\sthe\sold\spointer\simage,\sthen\smaybe\swe\scould\savoid\ssending\sexpose\r\nevents\sfor\sthe\schildren\swhich\sdo\snot\smeet\sthat\ssmall\sdamage\sregion.\r\n\r\nIt\sis\strue\sthat\sI\shave\snot\sspent\sany\stime\strying\sto\sdo\sthis\ssort\sof\soptimization,\r\nsince\sother\sthings\swere\smore\surgent.\s\sMaybe\swe\scould\sdo\sbetter.\sIf\syou\scan\sfigure\s\r\nout\show\sto\sget\smore\sdetailed\sdamage\sinformation\sfrom\sApple,\splease\slet\sus\sknow!
J login marc_culler
J mimetype text/plain
J username Marc\sCuller
K 06f3922f8b89d455d589544d1008e6d8f48c6f49
U marc_culler
Z 30c1788b5040bcb54bbfbadc12f8aa99