Create cursor-motion-blur#4707
Conversation
Adds Cursor Motion Blur: A mod that adds cartoon "smear frame" motion blur to your mouse movements.
Fixed name by adding file extension... Oops
Submission reviewNote: This review was done by Claude, and then refined manually. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding. Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them. This should be a "tool mod", not injected into
Add a GIF/screenshot to the README. This is a purely visual effect, so a short GIF of the smear trail in the README would help users a lot (only Optional improvements
Minor polish — none of this affects users, so it's your call.
Functionality notes
Non-critical observations about the feature behavior itself.
|
|
Changelog Converted the mod to a standalone Tool Mod running in windhawk.exe to prevent explorer.exe crashes. Completely replaced the CPU-heavy GDI+ rendering engine with hardware-accelerated Direct2D for zero-CPU GPU drawing. Rewrote the rendering engine to generate a solid procedurally-generated 2D polygon mesh, entirely eliminating alpha-blending artifacts at trail segment joints. Replaced the broken gradient shader with unified GeometryGroup mesh welding and D2D1_FILL_MODE_WINDING to ensure self-intersecting loops seamlessly merge like liquid instead of hollowing out or stacking dark opacity spots. Removed the invasive SetSystemCursor global hook so it no longer risks permanently hiding the OS cursor on a crash. Dropped the timeBeginPeriod timer resolution hijack to fix unnecessary system usage. Implemented per-monitor DPI awareness to fix scaling issues on mixed-monitor setups. Optimized the rendering loop to allocate the screen-sized bitmap only on resolution changes rather than every single frame. Added logic to physically hide the overlay window when idle so it doesn't block exclusive fullscreen presentation. Added proper COM and memory cleanup on unload. Stripped WS_EX_TOPMOST and added WS_EX_NOACTIVATE to the overlay window to prevent the auto-hide taskbar from glitching out when the smear triggers. |
| // @name Cursor Smear Frames | ||
| // @description Adds high-speed cartoon motion blur to your mouse pointer. | ||
| // @version 2.0 | ||
| // @author TheatriCHris |
There was a problem hiding this comment.
Oop yeah I missed a few things here, I'll give it one more go for the day.
Fixed header typos and missed edits
Adds Cursor Motion Blur:
A mod that adds cartoon "smear frame" motion blur to your mouse movements.
Changelog
If this pull request updates an existing mod, describe the changes below:
Mod authorship
If this pull request introduces a new mod, please complete the section below.
This mod was created by:
Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.