View Single Post
Old 12-25-2023, 06:56 AM  
Human being with feelings
FeedTheCat's Avatar
Join Date: May 2019
Location: Berlin
Posts: 2,056

Originally Posted by sockmonkey72 View Post
+ ReaScript/JSFX: gfx.getchar(65536) returns additional flag for mouse click would hit window [t=284395]
This addition is very heavy on CPU (about 20x of what it was before). The unfortunate part is that my script only needs access to bit 2 (focus).



Could this maybe be improved? Or could there be a way to only get focus etc.?

If you take a stab at this, MIDI_GetRecentInputEvent for polling incoming MIDI (idx=0) also seems quite heavy. I'd imagine that it could easily be optimized a bit? (E.g. no new MIDI event on any channel/device -> return immediately?). I have multiple scripts running at all times that poll it and it adds up.
Featured scripts: REAPER Update UtilityLil ChordboxGridbox/Adaptive gridMX TunerRS5K LinkMIDI Editor Magic Donate💝: PayPal|ko-fi
FeedTheCat is offline   Reply With Quote