cfjedimaster / IdleFleet

For my IdleFleet web game.
2 stars 2 forks source link

Fleets #4

Open brilang opened 2 years ago

brilang commented 2 years ago

When you have thousands of ships and click Send Ship(s), the web browser feels like it crashes for a few seconds while all ships are sent. Here are some thoughts on how to reduce the number of individual ships being sent.

Send Small Fleet(s) button - sends groups of 10 Send Large Fleet(s) button - sends groups of 100 Helen of Troy button - the button that launched 1000 ships

These would unlock as each threshold of available fleets to send is reached.

Fleets have unique Fleet names (replacing individual ship names for display purposes). Fleets travel and return together instead of individually. Fleets report the total credits earned from the fleet instead of individual ships

Sending fleets would reduce the number of output operations per second in the log window. Returning fleets would reduce the number of output operations per second in the log window.

brilang commented 2 years ago

Somewhere over ~5000 Total Fleet Size, I started seeing this warning every time I clicked Send Ship(s) when no ships were "out". image

cfjedimaster commented 2 years ago

I'm not surprised by this - that's firing 5k timeouts. I'm going to re-architect how that works by having one single "heart beat" interval that keeps track of ships. That could also handle the 'next ship returns logic' too. Not sure when I'll get to this, but I can definitely make it the next update.

cfjedimaster commented 2 years ago

Do you mind making a new issue for the lag problem? I believe I have it fixed (not in source yet) and I'd like to have it as a separate issue.

cfjedimaster commented 3 months ago

Revisiting this. I like the idea. Some thoughts. I think there should be bonuses for a fleet. Ie, if I send a fleet of 100, I don't just figure out the money per ship, but also give them a bonus for working together. However, I think there should be risk involved as well. Perhaps even completely losing a fleet.

cfjedimaster commented 3 months ago

Ranks: Flotilla (smallest 'fleet') - 10 ships Division - 50 ships Fleet - 100 ships Armada - 500 ships

cfjedimaster commented 3 months ago

We could also track these different. So you "buy" a flotilla with your ships. You buy a division with flotillas. Yeah, I like that. Also, this would let "Auto Send" still work.

cfjedimaster commented 1 month ago

OK, money wise, these things don't travel. They are straight CPS. Idea should be that initially, you lose money as you lost ships, but after a while they begin to be worth it. Ray, look at CPS when you have 10 ships. Also, maybe have them impacted by merchant skill and speed.