Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.48k stars 174 forks source link

Rework refresh rate thing #1390

Closed RblSb closed 2 years ago

RblSb commented 2 years ago

Please test on something outside 60hz monitors. You can add trace(refreshRatesCounts); before estimatedRefreshRate = possibleRefreshRates[index]; line to see how many correct hz matches you get after one second (for me its like 55-59 and 0 for other possible refresh rates). Another impl option is infinite fps value fixed size array (10-100 items) and move calculation logic to Display.get_frequency call.

Closes https://github.com/Kode/Kha/issues/1388

RblSb commented 2 years ago

I also removed khanvas.releaseCapture calls, this is Firefox-only thing, and already deprecated in it.