Skip to content

Matrix code screen #759

Closed
Closed

Description

@itg-assistant

Mark Reed asked 2017-04-07 17:41:21 UTC

Just thought I would share a sample I put together to show user painted controls. It is an animated code screen from Matrix.

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-04-07 20:27:43 UTC

    Cool!

    http://demo.wisej.com/matrixstreams

    If you open the thumbnail it scrolls together with the main window! And this is all drawn on the serve side.

    I changed a couple of things to remove the statics and the native text renderer to draw the string to use only GDI2 without creating the HDC.

    This app also uncovered what I call an "edge bug", a bug at the border line of the performance limits of Wisej. Internally the client wisej middleware queues all events and processes the queue at 75ms intervals in order to pack more data in a single message. The low interval (80ms) set in the app caused the scheduler to go into an infinite loop of canceling and rescheduling when adding more streams or more windows.

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Mark Reed answered 2017-04-07 21:50:20 UTC

    That looks pretty cool can you attach back the changed source code?

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Mark Reed answered 2017-04-07 21:53:52 UTC

    Also here is the original source in javascript that I ported.

    https://github.com/emilyxxie/green_rain/blob/master/sketch.js

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Mark Reed answered 2017-04-07 23:24:38 UTC

    Also I don’t know if it would be faster but the first version I was just using a label and setting the text property and location. But it seemed slow so I switched to the GDI. Maybe with the changes you made it would be faster using a label since it wouldn’t have to send a large image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions