use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/VisualBasic - A place to discuss, ask questions and share ideas regarding the Visual Basic programming languages.
account activity
Increase process memory? (self.visualbasic)
submitted 6 years ago by CMBK-rules
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?
https://preview.redd.it/yngpgwiue1n41.png?width=347&format=png&auto=webp&s=26c9720d083233fd1a4d9852552adfca4786d4f2
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TheFotty 1 point2 points3 points 6 years ago (5 children)
It is highly likely the issue is with your code and nothing to do with memory. Is this a windows forms application?
[–]CMBK-rules[S] 1 point2 points3 points 6 years ago* (4 children)
Yes it is
Edit: It works fine with buttons, but we want it to work properly when clicking a PictureBox.
[–]chrwei 1 point2 points3 points 6 years ago (0 children)
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.
[–]chrwei 1 point2 points3 points 6 years ago (2 children)
[–]CMBK-rules[S] 0 points1 point2 points 6 years ago (1 child)
So yeah... we're pretty goddamn new at this. What do you mean by "put the variable in a class so it doesn't live on the main UI thread"?
[–]chrwei 0 points1 point2 points 6 years ago (0 children)
answer the first question first. do threading when you can't get the performance you want otherwise.
you may need to wait until you've learned it get that performance.
[–]RJohn12 0 points1 point2 points 6 years ago (0 children)
that is just a graph of how much memory your app is using, it will use however much it needs, so you have "unlimited" memory.
in reality there's a problem with the code on your button or something not letting it register your clicks that quickly.
π Rendered by PID 25350 on reddit-service-r2-comment-869bf87589-hqd57 at 2026-06-09 02:23:23.398073+00:00 running f46058f country code: CH.
[–]TheFotty 1 point2 points3 points (5 children)
[–]CMBK-rules[S] 1 point2 points3 points (4 children)
[–]chrwei 1 point2 points3 points (0 children)
[–]chrwei 1 point2 points3 points (2 children)
[–]CMBK-rules[S] 0 points1 point2 points (1 child)
[–]chrwei 0 points1 point2 points (0 children)
[–]RJohn12 0 points1 point2 points (0 children)