Matrix Rain help (poor performance)

RastHacker

Member
Joined
Oct 22, 2019
Messages
16
Programming Experience
1-3
Hi, i learn my self to making winforms in c# with vs 2015 since my 15 yo.

And today for fun i wanna make a matrix rain with rasta colors but in winform not console application.I have finished but i've got poor performance, and maybe because i'm not very good to C# coding ;D, to explain what i've done, i just have to show you ;D

(show below post 3 ...)

thanks for all the comunity for helping ;D (not registered but using this forum since a while ^^)
 
Last edited:
A quick question before I log off, though.

Why are you trying to drive your two loop timers at different rates?

Also, did you read the documentation? The WinForms timer has a resolution of 55 milliseconds. Trying to drive one of your timers at less than that rate isn't really helping you much other than piling up tick events right behind each other.
 
A quick question before I log off, though.

Why are you trying to drive your two loop timers at different rates?

Also, did you read the documentation? The WinForms timer has a resolution of 55 milliseconds. Trying to drive one of your timers at less than that rate isn't really helping you much other than piling up tick events right behind each other.

Okay thanks for editing (and sorry), i've changed backgroundworker to async task with await, more smooth ~3% less CPU usage, change loop interval to 66ms for all 2. more smoother but same CPU usage.

I've searched more ways to draw large bitmap faster but didn't found more faster than DrawImageUnscaled. Maybe there is one ?
 
Back
Top Bottom