Jump to content

Mafia83

Member
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Mafia83

  1. ui.py
    Search: 

    class Window(object):
    
    	def __init__(self, layer = "UI"):

    add bellow:

    		self.onMouseLeftButtonUpEvent = None

    also in class Window(object):
     

    search: 

    		def OnRender(self):
    			if self.renderEvent:
    				apply(self.renderEvent, self.renderArgs)

    add bellow: 

    	def SetOnMouseLeftButtonUpEvent(self, event):
    		self.onMouseLeftButtonUpEvent = event
    
    	def OnMouseLeftButtonUp(self):
    		if self.onMouseLeftButtonUpEvent:
    			self.onMouseLeftButtonUpEvent()

     

    • Metin2 Dev 1
    • Love 1
  2. On 10/22/2021 at 2:16 PM, xP3NG3Rx said:

    I would like to mention here a minor bugfix about the update packets which cause the lags on changing attributes (maybe with manual mouse drag only? dunno).
    I hope it is visible on the video, if not just test it by yourself.
     

    What you need to do with these microlags is easy, just open the interfaceModule.py and there inside the Interface class you will find a function which is the RefreshInventory.
    Every different window which has refreshable item grid, it runs down from there even if the windows isn't opened. This cause the fps drop which is visible even with human eyes.
    The solution is, you have to put an (IsShow) if statement before they run down like the way how it looks like on my side:

    	def RefreshInventory(self):
    		self.wndTaskBar.RefreshQuickSlot()
    		if self.wndInventory and self.wndInventory.IsShow():
    			self.wndInventory.RefreshItemSlot()
    		if app.ENABLE_DRAGON_SOUL_SYSTEM:
    			if self.wndDragonSoul and self.wndDragonSoul.IsShow():
    				self.wndDragonSoul.RefreshItemSlot()
    		if app.ENABLE_EXTEND_INVEN_SYSTEM and app.ENABLE_SEPARATED_EXTEND_INVEN_WINDOW:
    			if self.wndInventoryEx and self.wndInventoryEx.IsShow():
    				self.wndInventoryEx.RefreshItemSlot()
    		if app.ENABLE_MOVE_COSTUME_ATTR or app.ENABLE_MOVE_SASH_ATTR:
    			if app.GetMoveAttrWindowOpen():
    				if self.wndItemCombination and self.wndItemCombination.IsShow():
    					self.wndItemCombination.RefreshCombSlotWindow()
    		if app.ENABLE_SHOULDER_SASH_SYSTEM:
    			if player.GetAcceRefineWindowOpen():
    				if self.wndAcce and self.wndAcce.IsShow():
    					self.wndAcce.RefreshAcceWindow()
    		if app.ENABLE_CHANGE_LOOK_SYSTEM:
    			if player.GetChangeLookWindowOpen():
    				if self.wndChangeLook and self.wndChangeLook.IsShow():
    					self.wndChangeLook.RefreshChangeLookWindow()
    		if self.wndAttr67Add and self.wndAttr67Add.IsShow():
    			self.wndAttr67Add.RefreshAttr67Window()
    		if app.ENABLE_AURA_SYSTEM:
    			if player.IsAuraRefineWindowOpen():
    				if self.wndAura and self.wndAura.IsShow():
    					self.wndAura.RefreshAuraWindow()

    I think that your solution is not exactly the best and look why I say this.

    https://metin2.download/video/1vvoUjT5M4F92GSSJrpAB3tu6vtUd3iM/.mp4

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.