Page MenuHomeWildfire Games

phosit
User

Projects

User Details

User Since
Mar 25 2022, 1:22 PM (78 w, 4 d)

Recent Activity

Yesterday

phosit committed rP27861: Return CTerrain and CUnitManager references from CWorld instead of pointers.
Return CTerrain and CUnitManager references from CWorld instead of pointers
Tue, Sep 26, 10:11 PM
phosit closed D4739: Return terrain reference from CWorld.
Tue, Sep 26, 10:11 PM
phosit added inline comments to D4739: Return terrain reference from CWorld.
Tue, Sep 26, 6:46 PM
phosit updated the diff for D4739: Return terrain reference from CWorld.

remove a newline

Tue, Sep 26, 6:44 PM

Mon, Sep 25

phosit added a comment to D5139: [Map] Extend Flood.

About when are the triggers?

The water rises just after 260 seconds from "shallow" to "deep". And rises just after 1560 seconds from "deep" to "mainland only".
Both times are relative to the start of the game.

Mon, Sep 25, 8:55 PM
phosit published D5139: [Map] Extend Flood for review.
Mon, Sep 25, 7:28 PM

Sun, Sep 24

phosit updated the diff for D4425: Use the threadpool for texture conversion.

Remove the queue size limit.
Add a iteration limit.

Sun, Sep 24, 8:47 PM
phosit updated the diff for D4739: Return terrain reference from CWorld.
  • Update copyright year
  • use const in many places
Sun, Sep 24, 8:00 PM
phosit updated the diff for D5001: Put the CMapGeneratorWorker completely inside the task.
  • Split and rename CMapReader::MapGeneration
  • Rename GenerateMap
  • Use MiB
Sun, Sep 24, 6:09 PM
phosit committed rP27856: Don't assign to need_update.
Don't assign to need_update
Sun, Sep 24, 4:43 PM
phosit closed D4981: Don't assign to need_update.
Sun, Sep 24, 4:42 PM
phosit updated the diff for D5132: Make the sea ground height of Elephantine independent from the mapsize..

Make the shore also independent.

Sun, Sep 24, 4:06 PM
phosit updated the diff for D5130: Move the game loading out of the SavegameLoader.

Use .bind instead of arrow functions more often.
Correct a indent mistake.

Sun, Sep 24, 3:52 PM

Sat, Sep 23

phosit added a comment to D4705: Remove sys_generate_random_bytes.

We don't know what to use for macOS.

I i'm not completely mistaken "/dev/urandom" is available on macos.

Sat, Sep 23, 11:52 AM

Thu, Sep 21

phosit added a comment to D4705: Remove sys_generate_random_bytes.

So std::random_device{"/dev/urandom"} would be a better fallback then std::default_random_engine for unix like systems?

Thu, Sep 21, 10:24 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Thu, Sep 21, 8:18 PM
phosit added a comment to D4705: Remove sys_generate_random_bytes.

std::random_device uses "/dev/urandom" in the background. On machines where std::random_device{}.entropy() == 0 the old way of generating random numbers (querying "/dev/urandom") did likely also fail.

Thu, Sep 21, 7:38 PM

Wed, Sep 20

phosit added a comment to D4705: Remove sys_generate_random_bytes.

Preliminary results for SVN: we have about 60% of users on macOS and 3% of users on Linux who has 0 for std::random_device{}.entropy().

I don't see how any value would be an argument against this diff.

Wed, Sep 20, 9:25 PM
phosit added inline comments to D4739: Return terrain reference from CWorld.
Wed, Sep 20, 8:28 PM
phosit added inline comments to D5001: Put the CMapGeneratorWorker completely inside the task.
Wed, Sep 20, 8:10 PM
phosit added inline comments to D5128: Refactors models and materials #2.
Wed, Sep 20, 7:36 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Wed, Sep 20, 7:29 PM

Mon, Sep 18

phosit added a comment to D5132: Make the sea ground height of Elephantine independent from the mapsize..

I know that i violate this rule

Mon, Sep 18, 10:00 PM
phosit updated the diff for D5130: Move the game loading out of the SavegameLoader.
  • Add forgoten .bind(this)
  • Inline pData
Mon, Sep 18, 6:47 PM
phosit added a comment to D5132: Make the sea ground height of Elephantine independent from the mapsize..

According to elexis all heights should be scaled by the map size.
For me this makes sense for hills and mountains but definitly not for waves or shores.
I'm uncertain if the sea ground height should be scaled by the map size. Conceptualy it should be treated like hills but in practice a deep see ground hurts performance and isn't noticed by players.

Mon, Sep 18, 5:52 PM

Sun, Sep 17

phosit added a comment to D5129: [Random Maps] New Migration map, rename old one to 'Land Grab'.
  1. Add a switch to Flood and make Flood better.
  2. Make a new Migration, add a switch to the new Migration and then delete Flood because it's just a bad version of the new Migration.

It feels like 1. is less of a hurdle.

Well, the layouts are a bit different, mainly the tree placement and resource distribution.

"Different" isnt necesarily better or worse.

Also, I have already done the 'new migration' part : )

The bigger hurdle is decideing that we need a new map. *And* then deciding that we delete Flood.
Whereas deciding to change resource distribution of Flood is a trifle. (Adding a switch is a even smaller trifle.)

I think it might make sense to let migration stay as is written, but let the 'switch' be some probability that the water is shallow like flood (unless it could be set by the user, I'd need some help to do that).

That's exactly what I imagine: The passability should be selectable like the placements on other maps. I'd like (help) to implement the switch.

I like that flood has these kind of square hills and mountains. I am thinking about scrapping the little impassible cliffs on the current migration center island and adding in these set elevation hills.

I also hate flat mountains.

Sun, Sep 17, 7:43 PM
phosit updated the diff for D5130: Move the game loading out of the SavegameLoader.

Make it a member function in CampaignMenu.

Sun, Sep 17, 5:57 PM
phosit retitled D5132: Make the sea ground height of Elephantine independent from the mapsize. from Make the height of the sea ground independent from the mapsize. to Make the sea ground height of Elephantine independent from the mapsize..
Sun, Sep 17, 1:01 PM
phosit requested review of D5132: Make the sea ground height of Elephantine independent from the mapsize..
Sun, Sep 17, 12:57 PM
phosit added a comment to D5129: [Random Maps] New Migration map, rename old one to 'Land Grab'.
  1. Add a switch to Flood and make Flood better.
  2. Make a new Migration, add a switch to the new Migration and then delete Flood because it's just a bad version of the new Migration.

It feels like 1. is less of a hurdle.

Sun, Sep 17, 11:19 AM
phosit added a comment to D5129: [Random Maps] New Migration map, rename old one to 'Land Grab'.

The new Migration looks pretty much like Flood.
The difference is that the water is "chest deep".

Sun, Sep 17, 11:02 AM

Sat, Sep 16

phosit added a comment to D3807: [WIP] Support JS promises.

RunJobs could be run in non-simulation frames. Which would make the game smoother.

Sat, Sep 16, 4:26 PM
phosit added a comment to D5129: [Random Maps] New Migration map, rename old one to 'Land Grab'.

I wasn't aware that you try to mimic a map from aoe2. That's an argument for this change: Player expect Migration to be similar to aoe2 and then are disapointed because the islands are that small.

Sat, Sep 16, 3:37 PM
phosit requested review of D5130: Move the game loading out of the SavegameLoader.
Sat, Sep 16, 3:03 PM
phosit updated the diff for D5001: Put the CMapGeneratorWorker completely inside the task.

Many small changes. Especially comments.

Sat, Sep 16, 12:42 PM
phosit added a comment to D5129: [Random Maps] New Migration map, rename old one to 'Land Grab'.

Because the bottleneck is stone/mettal instead of wood the migration will take place later.
IMO It's more interesting when the migration takes place early. Because players are be in p1 they can't build anything on the mainland and their recidence is more volatile.
Also in late game there can be markets and the player aren't forced (that much) to migrate.

Sat, Sep 16, 9:23 AM

Fri, Sep 15

phosit added inline comments to D5128: Refactors models and materials #2.
Fri, Sep 15, 10:37 PM
phosit added a comment to D5001: Put the CMapGeneratorWorker completely inside the task.

There are many typos, you don't have to comment on thous.
I'm more interested in what you think about the last revision...

It looks ok I think. Maybe it's not ideal but it's pretty clear what's going on.

Fri, Sep 15, 10:13 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Fri, Sep 15, 10:09 PM
phosit added a comment to D5129: [Random Maps] New Migration map, rename old one to 'Land Grab'.

Great to see the new placement options fit in to existing map. (And it's great to see they are adopted that eagerly by map makers ;) )

Fri, Sep 15, 9:46 PM

Thu, Sep 14

phosit added inline comments to D5128: Refactors models and materials #2.
Thu, Sep 14, 8:03 PM
phosit added a comment to D5001: Put the CMapGeneratorWorker completely inside the task.

There are many typos, you don't have to comment on thous.
I'm more interested in what you think about the last revision...

Thu, Sep 14, 5:56 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Thu, Sep 14, 5:52 PM

Wed, Sep 13

phosit added inline comments to D5108: Refactors models and materials #1.
Wed, Sep 13, 4:40 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Wed, Sep 13, 3:38 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Wed, Sep 13, 11:58 AM
phosit accepted D5121: Adds printing error names to Vulkan backend.

I didn't check if it's complete (everywhere where an error-code is printed also the string is printed)

Wed, Sep 13, 11:32 AM
phosit updated subscribers of D5127: Fix riscv64 build with GCC 13.

Is this ment to be applied on top of D4634?

Wed, Sep 13, 10:55 AM

Tue, Sep 12

phosit updated the diff for D5001: Put the CMapGeneratorWorker completely inside the task.

Remove INVALID_PROGRESS and it's uses.
I'm not sure this should be done in this diff so it's in an own revision.

Tue, Sep 12, 10:10 PM
phosit updated the diff for D5001: Put the CMapGeneratorWorker completely inside the task.

Make the flags runtime values so that I was able to converge the test and non-test paths.
Also I rewrote some comments.
I'm not sure if the functions in JSI_VFS should also respect the flags... So I did the change half way ;)

Tue, Sep 12, 9:20 PM

Mon, Sep 11

phosit added inline comments to D5001: Put the CMapGeneratorWorker completely inside the task.
Mon, Sep 11, 10:12 PM
phosit updated the diff for D4425: Use the threadpool for texture conversion.
  • schouldn't -> shouldn't
  • OPTIMAL_UTILIZATION -> MAX_QUEUE_SIZE_FOR_OPTIMAL_UTILIZATION
  • Add an anonymous namespace.
Mon, Sep 11, 9:57 PM

Sun, Sep 10

phosit added a comment to D5023: Stop running shrinking gcs - simplify logic..

On its own this is better then D4816 but it doesn't completely supersede it. D4816 also moves some GC calls to the LimitFPS.

Sun, Sep 10, 7:39 PM
phosit accepted D5122: Queries water manager only if a model should account it.

I can't reproduce the errors on extinct volcano anymore. And it's not related.

Sun, Sep 10, 3:20 PM
phosit updated the diff for D4770: Multiplayer saved games.
  • remove z-value from the buttons
  • increas the headersize for consistency
  • fix loading of savegames when the loaded mods are in a different order
  • move the hidden=true attribute in the ClearSavegameButton to the xml file
Sun, Sep 10, 12:36 PM
phosit added a comment to D3807: [WIP] Support JS promises.

As promisses enable async functions I think they are usefull without multithreading support.

Sun, Sep 10, 9:12 AM

Sat, Sep 9

phosit added a comment to D5122: Queries water manager only if a model should account it.

When testing with my mod: when the water rizes the ships get destroied. That shouldn't be the case but it's the same behavior as before the diff.
When testing with extinct vulcano: there are a lot of errors. Again the same behavior as before the diff.

Sat, Sep 9, 6:57 PM
phosit added a comment to D5121: Adds printing error names to Vulkan backend.

Cant you use string_VkResult from vk_enum_string_helper.h?

Sat, Sep 9, 5:13 PM
phosit updated the diff for D4770: Multiplayer saved games.

Fix:

  • crash when starting a non saved game.
  • crash when viewing the ai settings (due to reading a undeclared global variable).
  • reset of the saved-ness state when changing the player assignement.
Sat, Sep 9, 4:28 PM

Wed, Sep 6

phosit updated the diff for D4770: Multiplayer saved games.

Smaller cleanups

Wed, Sep 6, 7:33 PM
phosit updated the diff for D4770: Multiplayer saved games.

A more minimal patch.
Less functionality (AI-player have to stay AI-player, non-AI-player have to stay non-AI-Player.)
Less code duplication
Less code changes
Less globals ;)
Less changes to the gui (I don't think moving the buttons is that useful.)

Wed, Sep 6, 3:03 PM
phosit commandeered D4770: Multiplayer saved games.
Wed, Sep 6, 2:17 PM

Tue, Sep 5

phosit added a comment to D5001: Put the CMapGeneratorWorker completely inside the task.

I like the your first approach. One might argue that setting the flags during runtime is not save.

Tue, Sep 5, 7:08 PM

Sun, Sep 3

phosit added inline comments to rP27722: Pull Diplomacy out of cmpPlayer..
Sun, Sep 3, 4:37 PM
phosit added a comment to D5023: Stop running shrinking gcs - simplify logic..

A note, not a concern: Your analyzis is about the simulation (There are idle times in the server thread for example) but you also change code used in the server.

Sun, Sep 3, 2:46 PM
phosit added a comment to rP27722: Pull Diplomacy out of cmpPlayer..

@wraitii Your error is fixed with D5060 i think.

Sun, Sep 3, 9:33 AM

Sat, Sep 2

phosit committed rP27821: No recursive calls in FunctionWrapper.h.
No recursive calls in FunctionWrapper.h
Sat, Sep 2, 4:20 PM
phosit closed D4728: No recursive calls in FunctionWrapper.h.
Sat, Sep 2, 4:20 PM

Wed, Aug 30

phosit added inline comments to D5001: Put the CMapGeneratorWorker completely inside the task.
Wed, Aug 30, 7:47 PM

Tue, Aug 29

phosit updated the diff for D5001: Put the CMapGeneratorWorker completely inside the task.
  • Rename the struct
  • Remove _MapGenerator suffix
  • Indent the lambda more
Tue, Aug 29, 7:30 PM

Mon, Aug 28

phosit added inline comments to D5001: Put the CMapGeneratorWorker completely inside the task.
Mon, Aug 28, 6:27 PM

Aug 27 2023

phosit added inline comments to D5001: Put the CMapGeneratorWorker completely inside the task.
Aug 27 2023, 7:46 PM
phosit added inline comments to D4425: Use the threadpool for texture conversion.
Aug 27 2023, 5:44 PM
phosit added a comment to D5001: Put the CMapGeneratorWorker completely inside the task.

Should CMapReader::GeneratorState follow the rule of five?

Aug 27 2023, 12:09 PM

Aug 26 2023

phosit added inline comments to D4728: No recursive calls in FunctionWrapper.h.
Aug 26 2023, 10:44 PM
phosit updated the diff for D4728: No recursive calls in FunctionWrapper.h.

Write a comment about the [[maybe_unused]].

Aug 26 2023, 10:42 PM
phosit added inline comments to D4728: No recursive calls in FunctionWrapper.h.
Aug 26 2023, 5:58 PM
phosit abandoned D4935: New input handler system.

We should first settle on a async design.
An event should be "awaitable". (not necesaraly but ideally C++20 co_await)

Aug 26 2023, 1:19 PM
phosit accepted D5110: Provide entity ID for unit in constructor.

This is an improvement and the things in the test plan worked.
For the future: I think it's wrong that graphics/ knows something about the simulation. A hack would be to make the CUnit a template on a id-type.

Aug 26 2023, 1:12 PM
phosit added inline comments to D5108: Refactors models and materials #1.
Aug 26 2023, 12:13 PM

Aug 23 2023

phosit updated the diff for D5103: Make the RLInterface local.

Use optionals again. Reasoning in the previous comment.

Aug 23 2023, 6:16 PM
phosit committed rP27813: Remove the use of std::iterator in EntityMap.h.
Remove the use of std::iterator in EntityMap.h
Aug 23 2023, 2:31 PM
phosit closed D5105: Remove the use of std::iterator in EntityMap.h.
Aug 23 2023, 2:31 PM
phosit committed rP27812: Rename requires to required in Hotkey.*.
Rename requires to required in Hotkey.*
Aug 23 2023, 2:24 PM
phosit closed D5104: Rename requires to required in Hotkey.*.
Aug 23 2023, 2:24 PM

Aug 21 2023

phosit accepted D5085: Removes WInit module completely.

Note that i didn't test on windows.

Aug 21 2023, 7:09 PM

Aug 19 2023

phosit added a comment to D5103: Make the RLInterface local.

I changed my mind about "unswitching". Now i think it's better if the code path are unified (only one loop and switching/branching inside the loop). Bacicly this version
There where two path a visual and a non visual. With the RL::Interface I doubled the number of paths. It doesn't scale. We would have to double the number of paths everytime we introduce a new option {replay/autostart, map editor...}.
In future we should also unify Frame and NonVisualFrame.

Aug 19 2023, 4:14 PM
phosit updated the diff for D5103: Make the RLInterface local.
  • Rename Func to Callback
  • Indent the lambdas more
Aug 19 2023, 11:35 AM
phosit added a comment to D5103: Make the RLInterface local.

Yes it's a bit less readable, but it's better then repeating while (g_Shutdown == ShutdownType::None) four times.

Aug 19 2023, 11:22 AM
phosit updated the diff for D5103: Make the RLInterface local.

Unswitch the visual and the non-visual loop. This removes the need for std::optional but now there are four similar loops. I deduplicated the loop in to WhileNoShutdown.

Aug 19 2023, 10:02 AM

Aug 18 2023

phosit added inline comments to D5103: Make the RLInterface local.
Aug 18 2023, 8:33 PM
phosit added inline comments to D5103: Make the RLInterface local.
Aug 18 2023, 6:47 PM
phosit added a comment to rP27806: Lightens the repair icon slightly for the UI..

Why didn't you commit D5102?

Aug 18 2023, 6:36 PM

Aug 17 2023

phosit requested review of D5105: Remove the use of std::iterator in EntityMap.h.
Aug 17 2023, 8:37 PM
phosit updated the summary of D5103: Make the RLInterface local.
Aug 17 2023, 8:28 PM
phosit updated the diff for D5103: Make the RLInterface local.

Change the signature of Frame to take a raw pointer.

Aug 17 2023, 8:03 PM
phosit requested review of D5104: Rename requires to required in Hotkey.*.
Aug 17 2023, 7:24 PM
phosit updated the diff for D5103: Make the RLInterface local.

Licence year

Aug 17 2023, 6:14 PM

Aug 16 2023

phosit requested review of D5103: Make the RLInterface local.
Aug 16 2023, 10:28 PM
phosit added a comment to D4728: No recursive calls in FunctionWrapper.h.

@vladislavbelov do you still have a concern?

Aug 16 2023, 5:30 PM