Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

high pct tick #47

Closed
rjworks opened this issue Jul 29, 2020 · 23 comments
Closed

high pct tick #47

rjworks opened this issue Jul 29, 2020 · 23 comments
Assignees
Labels
bug Something isn't working WIP

Comments

@rjworks
Copy link

rjworks commented Jul 29, 2020

AuctionHouse v1.2.0-PRERELEASETotal: 1.782 s Pct: 0.12%
   Pct Total	Pct Tick	   Total	      Avg	 PerTick	     Count		Event
       0.04%	   0.04%	  0.63 s	     0.02 ms	  26	     809.5k	    shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuEventHandler::onDataPacketReceive(DataPacketReceiveEvent)
       0.04%	 246.24%	  0.62 s	   123.12 ms	 0.0	       0.0k	    Task: shock95x\auctionhouse\task\ListingExpireTask(interval 6000)
       0.03%	   0.03%	  0.50 s	     0.02 ms	  25	     754.4k	    shock95x\auctionhouse\libs\CortexPE\Commando\PacketHooker::onPacketSend(DataPacketSendEvent)
       0.00%	   0.16%	  0.04 s	     0.08 ms	 0.0	       0.5k	    shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuEventHandler::onInventoryTransaction(InventoryTransactionEvent)
       0.00%	   0.12%	  0.00 s	     0.06 ms	 0.0	       0.0k	    shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuEventHandler::onPlayerJoin(PlayerJoinEvent)
       0.00%	   0.00%	  0.00 s	     0.00 ms	 0.0	       0.2k	    shock95x\auctionhouse\EventListener::onInventoryClose(InventoryCloseEvent)
       0.00%	   0.47%	  0.00 s	     0.24 ms	 0.0	       0.0k	    Task: shock95x\auctionhouse\task\MenuDelayTask(Single)
       0.00%	   0.01%	  0.00 s	     0.00 ms	 0.0	       0.0k	    shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuEventHandler::onPlayerQuit(PlayerQuitEvent)
@Shock95 Shock95 added bug Something isn't working WIP labels Jul 30, 2020
@rjworks
Copy link
Author

rjworks commented Aug 13, 2020

the interval for this task is currently 5 mins. will anything break if i change it to 50 mins?

@Shock95
Copy link
Owner

Shock95 commented Aug 13, 2020

If you're confident that the server won't crash anytime then sure, but I already made optimizations and might push them soon

@rjworks
Copy link
Author

rjworks commented Aug 13, 2020

im not confident

can u make push that

@Shock95
Copy link
Owner

Shock95 commented Aug 14, 2020

I'm waiting for recursive inventories get fixed in InvMenu, until then I could use a delayed task to send menus as a workaround but it might not work all the time so I'm not sure.

@Shock95
Copy link
Owner

Shock95 commented Aug 17, 2020

I currently have a workaround that seems to work, if it doesn't break and everything else works fine I'll push it today

Shock95 added a commit that referenced this issue Aug 18, 2020
- Optimizations (#47)
- Added missing settings
- Added price format option to add commas

Optimizations:
- Pagination no longer uses a new class all the time
- Pagination system now uses array_slice()
- DB is now updated when a listing is created or expired
- Other small things
@rjworks
Copy link
Author

rjworks commented Aug 18, 2020

does it break

@Shock95
Copy link
Owner

Shock95 commented Aug 18, 2020

Everything seems to be fine, I pushed a release an hour ago

@rjworks
Copy link
Author

rjworks commented Aug 18, 2020

should i use that
i current have it the task every 55mins

@Shock95
Copy link
Owner

Shock95 commented Aug 18, 2020

I made optimizations in other areas besides the task so yeah

@rjworks
Copy link
Author

rjworks commented Aug 18, 2020

oh ok will it no longer be 200+% pct tick then

@Shock95
Copy link
Owner

Shock95 commented Aug 18, 2020

The timings seemed to be good when I tested it, you can try it and check the results just to make sure

@rjworks
Copy link
Author

rjworks commented Aug 18, 2020

why when i download 1.2 branch i get something else
something else not what i see in the 1.2 page.

@rjworks
Copy link
Author

rjworks commented Aug 18, 2020

there is also no commando in virions:.

@Shock95
Copy link
Owner

Shock95 commented Aug 18, 2020

Are you downloading from the releases tab?

@rjworks
Copy link
Author

rjworks commented Aug 18, 2020

ok that fixed it thanks a lot good job keep it up

@rjworks rjworks closed this as completed Aug 18, 2020
@rjworks
Copy link
Author

rjworks commented Aug 20, 2020

the pct tick improved a lot what did u do?

@Shock95
Copy link
Owner

Shock95 commented Aug 20, 2020

thanks, you can look at the description and changes here: ae18be6

I pretty much went over the plugin and checked everything I was able to optimize, even the small things

@rjworks
Copy link
Author

rjworks commented Aug 26, 2020

- DB is now updated when a listing is created or expired
is this not resource extensive?

@rjworks
Copy link
Author

rjworks commented Aug 26, 2020

if not, i think i want to do that for my plugin too to save stats when the player leaves instead of all player at once every other time.

@Shock95
Copy link
Owner

Shock95 commented Aug 27, 2020

- DB is now updated when a listing is created or expired
is this not resource extensive?

Not necessarily since I don't think listings would be created that often and the DB lib is async too, it would actually be better in case of a fatal server crash

@rjworks
Copy link
Author

rjworks commented Aug 27, 2020

- DB is now updated when a listing is created or expired
is this not resource extensive?

Not necessarily since I don't think listings would be created that often and the DB lib is async too, it would actually be better in case of a fatal server crash

everything in libasynql is async right including update

@Shock95
Copy link
Owner

Shock95 commented Aug 27, 2020

- DB is now updated when a listing is created or expired
is this not resource extensive?

Not necessarily since I don't think listings would be created that often and the DB lib is async too, it would actually be better in case of a fatal server crash

everything in libasynql is async right including update

yes

@rjworks
Copy link
Author

rjworks commented Sep 3, 2020

- DB is now updated when a listing is created or expired
is this not resource extensive?

Not necessarily since I don't think listings would be created that often and the DB lib is async too, it would actually be better in case of a fatal server crash

everything in libasynql is async right including update

yes

do you think it would be a bad idea to save stats ;like kills and deaths to SQLite every time the player leaves?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WIP
Projects
None yet
Development

No branches or pull requests

2 participants