Results 812 comments of Andre Weissflog

Yep, known issue :) I'm pretty sure this is because of timing issues in the VIC-II emulation. I only recently discovered the VIC-II tests from the VICE emulator (https://vice-emu.pokefinder.org/index.php/Testbench), and...

Looks about right here (tested with VICE and your test program). What does the time value in the top-right-corner say when you start the "ui" version (https://floooh.github.io/tiny8bit/c64-ui.html). If this is...

PS: the last change in the timing code was this (from last May): https://github.com/floooh/chips-test/commit/29e987f6fe998b8c2351f35a159c0f96c9678b1c#diff-629ebb0dfc46596928905df3ef39db58ddcfce3d68c66bc1a281f2cc745ae573 The stm_round_to_common_refresh_rate() isn't strictly necessary, it might throw off the timing by up to 10% or...

Hmm that looks strange indeed... Are you able to build and run the native versions of the emulator on that machine (e.g. is this specific to the browser version)?

Yep I know that effect, and I even had it implemented in a previous emulator. See here and click on the little "CRT" button in the bottom left corner: http://floooh.github.io/virtualkc/...

The issue seems to be that cmake has generated MSVC project files (which it does by default on Windows), but with Emscripten command line options (I haven't tested Emscripten builds...

Yeah I see this lag too on all platforms. Don't know what to do about this TBH. As far as I'm aware the swapchain implementations in sokol_app.h are not doing...

...it looks like in the official ImGui samples the lag is also there, *but* it seems to be slightly better (tested on Windows with the D3D11 example in here): https://github.com/ocornut/imgui/tree/master/examples...

Ok, the ImGui DX11 sample does one thing differently: the mouse position is polled instead of obtained via WM_MOUSEMOVE: https://github.com/ocornut/imgui/blob/047d4c4500fc08b64d800eceae9951fc01c0a78b/backends/imgui_impl_win32.cpp#L160-L166 Swapchain setup, vsync, and general frame structure are otherwise identical....

PS: what system are you actually on? I just noticed that your mouse pointer looks more like Mac :D I need to do the same investigation there.