Jim Drygiannakis retweeted
DLS in now free (name your own price) on itch.io
makingartstudios.itch.io/dls
Jim Drygiannakis retweeted
Today I’m releasing the source code of my new experiment - multi-threaded, CPU-based vector graphics rasterizer - github.com/aurimasg/blaze
Triangle Rasterization - Part 2: More optimizations
cohost.org/jdryg/post/625373…
TLDR: Managed to save ~0.4ms (1.34ms/frame -> 0.94ms/frame) using only SSE2 and ~0.5ms (0.82ms/frame) using SSSE3/SSE4.1
Trying to optimize a simple triangle rasterization function I found on the internet. cohost.org/jdryg/post/603959…
2
What's the proper way to handle rendering on minimized window? Render to a 1x1 framebuffer and swap/vsync as you normally would? Skip rendering completely and Sleep(16)? Something else?
3
And a semi-related question. Are high resolution waitable timers a good choice for a custom frame limiter (e.g. no vsync, limit FPS to 120Hz)? Anyone tried it?
randomascii.wordpress.com/20…
Electronics Twitter: My brother had an idea to replace the analog dashboard of my father's tractor with an LCD display. Does anyone have any recommendations on an mcu/fpga/soc + 10"-11" display with support for 60Hz refresh rate + a couple of sensors? Fast boot up is a plus.
1
1
This looks interesting: crowdsupply.com/excamera/gam…
Anyone has any experience with it? Is it suitable for rendering a simple UI (e.g. a tractor dashboard :))?
1
Another alternative might be a Zynq board like this: aliexpress.com/item/40003235…
Has HDMI + ADC for analog sensors + an ARM core for the app/UI.
Had an idea to try setjmp/longjmp with a SIGSEGV signal handler to overcome a crash when calling a specific function from a 3rd party DLL. It seems to work (no crash when calling the func), but unfortunately sentry/crashpad stops working, even though I reset the signal handler.
1
It turns out it's a bit more complicated. Even if sentry/crashpad kept working correctly, the DLL ends up in an invalid state and has to be reinitialized (takes time). Also, I'd have to limit access to the DLL to a single thread because calling a function during reinit will fail.
1
Initial attempt to convert NV12 to RGBA using SSE2. ~2x speed up compared to original C code, (1280x720 image).
The original C code could probably be made faster without relying on SIMD but where's the fun in that :)
gist.github.com/jdryg/670315…
3
Jim Drygiannakis retweeted
After almost 3 years of inactivity, v0.17.0 is live on itch.io. It includes an experimental transistor-level simulator and various bug fixes. makingartstudios.itch.io/dls
Switched to a more generic Kalman filter equ and implemented a simple genetic algorithm for auto-tuning all motor driver parameters.
Blue: Dirt Rally 2.0 FFB torques
Red: Raw motor current (actual wheel response)
Green: Filtered motor current (PID input)
nitter.cf/jdryg/status/145666549…
Replying to @jdryg
I now have everything needed (theoretically) to try and tune the PID controller and sensor filter. Force recording and playback using HID.dll and a metric to compare different configurations (integral of absolute error).
Wrote a small app using ImGui + ImPlot to visualize my FFB wheel's PI controller output while playing Dirty Rally 2.0, because Serial Oscilloscope was too slow and kept crashing all the time.
2
3
Note to future self: Since this is an HID device, a custom feature report (UsagePage=Vendor) is enough. (HidD_SetFeature/HidD_GetFeature)
No extra interface or device is required and the CDC can stay independent of the HID device.
1
I also added a stack of equations to the app. Each equation can take as input all the avail. channels (data coming from the mcu over the CDC/UART) + all the equation results above it. A simple way to try out various configs to see how they affect sensor raw data.
1











