Clément Grégoire (@lectem) header
Clément Grégoire (@lectem) profile picture

Mostly moved to the place where the sky is blue. Performance, GPU APIs, multithreading and game engines specialist @siliceum. Does reverse engineering for fun.

Clermont-Ferrand, France
Joined August 2014
Replying to @Ced_haurus
On peut meme pas opt-out préventivement...
211
To the fucktard designer at @SamsungMobile or @Android who decided that opening an update dialog under my fingers AT 15% battery WITH A BUTTON AT THE KEYBOARD LOCATION WITHOUT ANY FUCKING CONFIRMATION DIALOG OR GRACE PERIOD: YOU SHOULD BE FIRED AND EAT MY PHONE
Fuck you very much @Samsung. I've been postponing the oneui6.1 update for a while, and the dialog asking if I want to do it just popped WHILE I WAS TYPING TEXT. Result: I pressed "update" unknowingly because the button appeared right under my finger. I could have lost much
109
Replying to @_SaxX_
Moi pendant ce temps là. (pas mieux en Espagne)
87
Replying to @valigo
Apparently it used to sleep, but then they extracted the code to safe_sleep.sh and replaced it with just the busy loop 😅
1
3
44
3,984
Replying to @SheriefFYI @valigo
It wasn't even "safe" until last year 😂
1
4
617
Replying to @lectem @dvyukov
I think this is wrong though ? Single threaded programs can be preempted too, for example when doing I/O. CPU and wallclock are always different unless you never do kernel calls and get lucky with the scheduler.
1
30
Oh, and there's plenty of CPU available ! So yeah, I'm guessing our access pattern is really hard... (no fat colored line => idle)
285
So I tried oversubscribing using more threads than cores, and this does not end well😅 All the boxes you see in this case are CreateFileW calls. So for now I'm limited to divide the cost by the number of cores. Note: This happens on both PC and console.
2
1
321
Replying to @AgileJebrim
If you mean the one from the stdlib, it calls CreateFile under the hood, so it's not lower level? Unless it does some magic somwhere to make it faster
1
1
130