Original Post
Greatings, I'm currently learning graphics engine programming. In the short term, I'd like to smooth out mouse movement using multithreading. After reading for an hour and a half, I see that one way to do this is to have one thread that waits for mouse events and then processes mouse events when they arrive. My goal - Have smooth, GLITCH FREE, mouse movement even when the frame-rate drops. As far as drawing the mouse, I've read (I think on a gamedev article) that the following things need to happen: - Restore the rectangle of pixels where the cursor was recently drawn - Save the rectangle of pixels where the cursor is about to be drawn - Draw the cursor to the frontbuffer - Render the cursor to the backbuffer What are my questions? Basically... if you could provide me with a good resource for learning the following, I would be VERY grateful. 1. Writing a function for a secondary thread to the main application that waits for mouse events & processes them without interfering with the main thread. 2. Saving a rectangle of pixels currently in the front or backbuffer. 3. To a lesser extent... Drawing a rectangle of pixels to a front or back buffer. Thank you for your time!