Home › Forums › General › Programming › why is this method looping through several times? › Reply To: why is this method looping through several times?
to clarify: i was curious to check whether what i was
doing was efficient: having lots of little subfunctions,
and having main functions calling them. seems to be
working ok, but what’s happening that i can’t see?
so i put in a console command, as a marker, that tells me
each time that function has run, and where it should only
appear once, it is appearing, depending on what i click,
24 times, or 25, or 70 or more. in fact, the console thing
runs multiple times whatever i click on my UI.
leading me to conclude that i might have overdone the minifunctions
thing, and might need to reconstruct some individual methods again.
this function get called whatever operation is performed.