Python Forum
Weird refresh rate with i2c lcd
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird refresh rate with i2c lcd
#5
I just skimmed your code, did not follow control, etc. But these stand out to me.

Is there anything that is preventing this from occurring?
def processLoop():
        func = []
         
        for processes in hwObjects:
            f = Process( target = hwObjects[processes].run, args=[])
            f.start()
            func.append(f)
 
        for f in func:
            f.join()
 
        return True
 
while processLoop():
    pass
From my perspective it appears to constantly loop and create new processes which would drag a program to halt. Also concatenation is a sure way to bottleneck a program and IO (file write/read) is one of the slowest processes, so restricting them would be ideal.
Recommended Tutorials:
Reply


Messages In This Thread
Weird refresh rate with i2c lcd - by JarredAwesome - Sep-09-2020, 02:26 AM
RE: Weird refresh rate with i2c lcd - by nilamo - Sep-09-2020, 02:36 AM
RE: Weird refresh rate with i2c lcd - by metulburr - Sep-10-2020, 10:39 AM
RE: Weird refresh rate with i2c lcd - by nilamo - Sep-13-2020, 06:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020