Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Things can be modified #1

Open
logic-finder opened this issue Mar 4, 2023 · 0 comments
Open

Things can be modified #1

logic-finder opened this issue Mar 4, 2023 · 0 comments

Comments

@logic-finder
Copy link
Owner

Optimazation

  • Record the mouse cursor animation and play it (no need to calculate every time).
  • Mouse cursor has four lines but each two lines are symmetric. Calculate only two lines and rotate.
  • Undo/redo:
    • It seems that saving the canvas itself occupy 8MB (approx.) when the monitor size is 1920x1080.
    • This is heavy. I think it may be possible to solve this problem by: 1) making an array and a linked list 2) saving mouse coordinates to the array and save a last index of each mouse movement up to last n counts 3) drawing a trace up to that index when undo/redo.

Custom

  • It may be possible to process the webcam data by not passing it to the <video> element, but to <canvas> element in order to apply some filtering.

User experience

  • When the mouse cursor is located at corners of the screen, make the palette appear at an appropriate place.

Different approach

  • It seems that getting global click events can also be achieved by GetAsyncKeyState().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant