From what I understand from code those unwarps are just doing matrix multiply to get unwraped pixel location? In this case doing these operations directly in fragment shader instead of texture lookup will be faster. Memory bandwidth is not free. But simple ALU like this (just couple FMA's) can easily hide in shadow of texture sampling that happens afterwards. So simply upload those undistortion matrices (mat1 & mat2) as uniforms and do matrix multiply in shader for adjusting texcoords.
I don't know why Signal calls it "DRM" because the do not use DRM for this. Typically DRM means encryption & keys are involved (which is what Netflix & others are doing with Widevine or PlayReady).
Thanks for the insight, I thought they took advantage of the whole DRM stack (including HDCP in monitors) to encrypt the UI and let the monitor decrypt it.
There are cases where the optimization wouldn't be safe (like i < n && a[i] != k) but this is not one of them. Maybe the compiler is just dum. Or maybe avoiding branches is not clearly faster in cases like this? Have you measured this particular case?
https://github.com/veluca93/fpnge is a very fast png encoder. A bit lower compression ratio, but runs significantly faster than alternatives. Here is a presentation with benchmarks:
This worked out for me. What I was actually interested in was reducing CPU utilization, which generally speed is a fine substitute for (the same work being done in a smaller time slice means lower overall utilization). It reduced utilization enough that I'll likely push to use it for production in the future (not immediately, there's bigger low hanging fruit).
Literally the expression you want to calculate. It evaluates to immediate from _MM_TERNLOG_A/B/C constants defined in intrinsic headers, at least for gcc & clang:
Suppose you have four boolean variables A, B, C, and D. You can calculate X as the result from A, B, C assuming that D is false, and Y as the result assuming that D is true. Then, a third ternary operation can switch between X and Y depending on D. This creates a tree of 3 operations, which I suspect is the best you can do in the worst case.
For five or more arguments, this naturally extends into a tree, though it likely isn't the most efficient encoding.
And if you're running Far under ConEmu, copy ConEmu\Plugins\ConEmu folder into Far's Plugins folder. It will do better integration with ConEmu (there will be bunch of new ConEmu related features under F11 menu in Far).
Make sure you run wxgtk build, not the terminal one. Terminal is limited on what shortcuts it can do. But wxgtk build runs exactly as windows counterpart - Alt+F1/F2 and many other shortcuts work fine.
Thank you! On Debian i have found the far2l which seems to work. I am trying to see if far can be a replacement for mc, which has been my goto terminal manager... and i like some of the shortcuts there... like <ctrl>-s and start typing (seems that on far, one can press <esc> and start typing for the same. I have not yet figured out how to (easily) get a file name to the command line or how to make vim the default editor when pressing F4...
Ctrl + "[" , Ctrl + "]" - bring the full path in the left panel or the right panel respectively into the command line (so Ctrl"+"[" and then Ctrl+Enter will bring full file path of the file under the cursor into the command line)
Ctrl + PgUp - move up the folder tree
Ctrl + U - swap panels (so the cursor goes from one panel to another, useful when you operate in 2 folders primarily, saves you an Alt+Tab)
Ctrl + LeftArrow, Ctrl + RightArrow - makes one of the panels larger or smaller
Ctrl + 1,2,3,5 - change panel layout (file name 1 column, file name 2 columns, file name with attributes, file name with more attributes)
etc. There's a lot. Not even mentioning all the plugins built in the last 20 years.
Fun fact: it was written by a 24 yo college student (graduate?..) from Chelyabinsk and was pretty much functionally complete couple years later. The same guy who designed RAR file format and built WinRar around the same time.
mc has a "list of bookmarked directories", does far supports such a feature, with a shortcut to bring up the dialog to choose an entry from the list? I haven't found such thing... Only to have particular single directory on a shortcut, which means that I would have to remember the number corresponding to each path...
The closest would probably be FAR menu (F2) where menu options can be edited; you can probably just do "cd [name]" for menu options. I believe there's also history of commands issued in "Alt+F8". So... kinda.