Commit 2d0cc7d
committed
PRF: only do expensive things once
Looking up MachAr was taking about 10ms which is way to slow to be
inside of the mouse motion event loop.
We are using it to get a constant so we can look it up and compute
the constant once at the top.1 parent ed44362 commit 2d0cc7d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
2738 | 2739 | | |
2739 | 2740 | | |
2740 | 2741 | | |
2741 | | - | |
| 2742 | + | |
2742 | 2743 | | |
2743 | 2744 | | |
2744 | 2745 | | |
| |||
0 commit comments