In terms of performance, is it faster to move a rect or make a new rect in Pygame?

后端 未结 0 1471
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 04:29

Which code in a class would be run faster?

def update():
    self.rect=pygame.Rect(self.x,self.y,50,50)

or

def update():
    self.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题