https://github.com/cmuratori/dtc
Dangerous Threads Crew
https://github.com/cmuratori/dtc
Last synced: 5 months ago
JSON representation
Dangerous Threads Crew
- Host: GitHub
- URL: https://github.com/cmuratori/dtc
- Owner: cmuratori
- License: mit
- Created: 2021-11-15T02:11:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-19T23:28:35.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T05:41:55.300Z (6 months ago)
- Language: C++
- Size: 6.84 KB
- Stars: 164
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dangerous Threads Crew
This is a very simple example program to illustrate how you move CreateWindow/DestroyWindow onto a separate thread if you need your API architecture to allow the main thread to create and destroy windows in an arbitrary way.
It may seem like a strange thing to do, but unfortunately Win32 internals have some really bad behavior during sizing and dragging windows that make it difficult for real-time rendering applications to properly continue what they're doing during those events without interruption. Moving CreateWindow/DestroyWindow onto a separate thread moves the message processing for all windows onto that separate thread, thereby preventing Windows' message processing from interrupting your main threads.
\- Casey