pandemonium_engine/platform/javascript/js/libs
Relintai bcf96a5840 Ported: Improve performance of screen_get_dpi() in Javascript
Replace a bisect with a single multiplication when calling
screen_get_dpi() in Javascript

Tested the value of
window.matchMedia(`(resolution:${(window.devicePixelRatio*96).toFixed(100)}dpi)`).matches
which is true except for values that cause a lot of rounding errors
(e.g. dpr : 0.3  => resolution: 28.799999999999997dpi)

Even in these cases the value matches the result of the previous
`findDPI()` method.
-jamie-pate
562d7c616d
2022-09-16 21:15:54 +02:00
..
audio.worklet.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
library_pandemonium_audio.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
library_pandemonium_display.js Ported: Improve performance of screen_get_dpi() in Javascript 2022-09-16 21:15:54 +02:00
library_pandemonium_fetch.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
library_pandemonium_input.js Fix javascript build. 2022-08-19 16:23:02 +02:00
library_pandemonium_javascript_singleton.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
library_pandemonium_os.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
library_pandemonium_runtime.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00