Ministry of Russophobia
[Most Recent Entries] [Calendar View] [Friends]

Below are the 4 most recent journal entries recorded in sadkov's LiveJournal:

    Saturday, August 17th, 2019
    3:12 pm
    RLE Blitting
    Ok. Transitioning to RLE blitting haven't improved the performance that much in general case - just 20% speedup (70% when drawing fully opaque sprites, without any blending or effects), but code complexity greatly increased. Still most of my sprites are opaque. Also, for blitter, GCC compiled code is 30% faster than the Clang one.

    One thing I noticed while measuring performance (for both rle and non-rle code) was that at times my code completed two times faster, which is impossible because test used all static data (a single sprite which it blitted a million of times in a loop), with only variables being branch prediction, while I have 0% CPU load, and it doesn't make any syscall inside measured code. What does that even mean? Branch misprediction does affect performance, but not two times in the long run, because it would quickly retrain the cache on thousandth iteration.

    Broken scheduling or OSX intentionally slowing down the code? Or maybe the Intel CPU itself does that? My MacBook is relatively old, so if it has any time bomb, it would be activated by now. Or maybe that is the infamous Meltdown fix slowing down my code two times? How does one disable the Meltdown patch? For Linux there is, but what about OSX? I don't care about security - it is overrated.

    Another interesting finding, with GCC __builtin_expect makes code faster, but in Clang the same __builtin_expect makes the same code slower. As if Clang intentionally uses that info to incur misprediction. WTF?

    There is also an article,

    Current Mood: annoyed
    Sunday, March 18th, 2018
    8:12 pm
    Windows 10 и "F1"
    Как я уже упоминал, нечаянное нажатие F1 в Windows 10 запускает браузер и открывает в нем bing. Все это грузится иногда больше минуты. Тех поддержка Microsoft отказывается отвечать как отключить F1, либо издевательски предлагает менять через gpedit.msc, который присутствует только в Enterprise версиях Windows

    Однако один из пользователей дал точные команды:
    taskkill /f /im HelpPane.exe
    takeown /f %WinDir%\HelpPane.exe
    icacls %WinDir%\HelpPane.exe /deny Everyone:(X)

    Иными словами надо как обычно удалить файл сервиса помощи. Вообще, это тенденция какая-то, ибо автоапдейт и многие другие надоедливые сервисы отрубаются только повреждением их файлов.

    Current Mood: amused
    Wednesday, January 10th, 2018
    6:32 am
    Обновление Превращает AMD-ноутбуки в Кирпичи

    it appears the only workaround is to reinstall Windows and immediately delay updates

    А я вас предупреждал, бедняши, но вы меня высмеяли и авто-апдейт не отключили. R.I.P.

    По мотивам: и


    Current Mood: cynical
    Current Music: Real Life - Send Me And Angel
    Wednesday, January 3rd, 2018
    11:25 pm
    Немедленно отключайте обновление системы!!!
    Crucially, these updates to both Linux and Windows will incur a performance hit on Intel products. The effects are still being benchmarked, however we're looking at a ballpark figure of five to 30 per cent slow down, depending on the task and the processor model.

    Иными словами все ваше программное обеспечение будет работать на 30% медленней. На OSX тоже отключайте, Apple выкатят аналогичный патч:

    Это вдогонку к


    Current Mood: impressed
    Current Music: Telex - Moskow Diskow
Цитаты о Родине   About