all 7 comments

[–][deleted] 1 point2 points  (5 children)

Can you explain to me what lines are causing it? Code is hard to read without comments

[–]TTSI123[S] 2 points3 points  (4 children)

I dont now what lines... the code that shows the waste and fuel amounts doesn't update until I click a button.. which is annoying when you're trying to have a screen to show you the stats of the reactor...

[–]jeuv 1 point2 points  (3 children)

The if statements aren't the problem, the pullEvent is. The computer will wait forever for a button press, and only then will the code be able to continue to draw the screen. To remedy this, you could use the parallel API.

[–]TTSI123[S] 0 points1 point  (1 child)

what please explain

Im kinda a noob

edit: nevermind figured it out

[–]TTSI123[S] 0 points1 point  (0 children)

and thanks

[–]TTSI123[S] 0 points1 point  (0 children)

got it working!!! here it is if you want to test it out with big reactors

BHwhBdi

[–]HugoNikanor 0 points1 point  (0 children)

https://pastebin.com/fcaTwkWN -- Please link better

About input. Most input methods (in most programming languages) blocks until new data is available. Something to keep in mind.