r/visualbasic • • Mar 16 '20

Increase process memory?

Hey guys! My friend and I are making a school project in visual studio (with visual basic). We're making a bootleg cookie clicker game. The problem is that the counter can't keep up with our "clicking speed", and therefor some clicks are nor registered. The small process memory graph says maximum of 27 MB (as seen in the picture). Is this the problem or what?

5 Upvotes

6 comments sorted by

View all comments

2

u/TheFotty Mar 16 '20

It is highly likely the issue is with your code and nothing to do with memory. Is this a windows forms application?

2

u/CMBK-rules Mar 16 '20 edited Mar 16 '20

Yes it is

Edit: It works fine with buttons, but we want it to work properly when clicking a PictureBox.

2

u/chrwei Mar 16 '20

which event and how much code is in it? if the code does more than just increment the variable, redesign. also put the variable in a class so it doesn't live on the main UI thread.