Page MenuHomeWildfire Games
Feed Advanced Search

May 27 2019

vladislavbelov added a comment to D1926: Introduce some sort of prop LOD.
In D1926#79568, @Stan wrote:

Unless the props is really complex and needs its own ao they should have none. That means more space for the main structure and less drawcalls. Also having fifty different aos for one barrel kills the idea XD

May 27 2019, 8:04 PM
vladislavbelov added a comment to D1926: Introduce some sort of prop LOD.
In D1926#79566, @Stan wrote:

Two AOs seem like a waste of space. Also might require multiple uvs which isn't good. Updqtung props means rebaking aos anyways and now that I found a way to do it on the Gpu it should be faster

May 27 2019, 7:56 PM
vladislavbelov added a comment to D1926: Introduce some sort of prop LOD.
In D1926#79561, @Stan wrote:

Edit: Will also need to rebake Ao or it might look weird.

May 27 2019, 7:52 PM
vladislavbelov added a comment to D1926: Introduce some sort of prop LOD.

Wouldn't it better to split refactoring and adding new feature?

May 27 2019, 7:37 PM
vladislavbelov added a comment to D1925: High-DPI screen support.

Yeah, I think it'd be good in future to have an option like a follow the platform scale (of course after UI scale fix).

May 27 2019, 2:39 PM

May 19 2019

vladislavbelov added inline comments to D1909: Version and update the Windows autobuilder script.
May 19 2019, 10:00 PM
vladislavbelov added inline comments to D1909: Version and update the Windows autobuilder script.
May 19 2019, 9:13 PM

May 13 2019

vladislavbelov added a comment to D1878: [CChart] Add a percentage format.

The patch looks good for me.

May 13 2019, 10:18 PM

May 8 2019

vladislavbelov added inline comments to rP22029: Change internals of EntityMap to use an std::vector.
May 8 2019, 9:30 PM

Apr 29 2019

vladislavbelov added inline comments to D1852: Fix possibly using uninitialized global in rP19674 and rename `GetDirectoryName`.
Apr 29 2019, 10:46 PM
vladislavbelov added inline comments to D14: Thread the pathfinder computations.
Apr 29 2019, 6:12 PM

Apr 28 2019

vladislavbelov added a comment to D14: Thread the pathfinder computations.

I didn't review a data flow yet. I'll try to do an analysis of possible locks/concurrency accesses later.

Apr 28 2019, 11:46 PM
vladislavbelov added a comment to rP19674: Fix replay menu loading time by using a cache file.

Well then this doesn't indicate an issue with path.h (there might still be one despite the lack of indication though :P)

Yep.

Apr 28 2019, 3:48 PM
vladislavbelov added a comment to rP19674: Fix replay menu loading time by using a cache file.

Are you sure that g_args_ isn't constructed yet on Slackware or that it is only not guaranteed to be constructed yet?

Yes, it's not guaranteed, and it's not constructed. I just tested it on Slackware 14.2.

Apr 28 2019, 1:05 PM
vladislavbelov added a comment to rP19674: Fix replay menu loading time by using a cache file.

But I think declaring them as static const will not be possible.

I don't see a problem for a local static const except wrong dependencies.

Apr 28 2019, 10:30 AM
vladislavbelov added a comment to rP19674: Fix replay menu loading time by using a cache file.

@vladislavbelov do you see undefined behavior for the std::wstring path member in the path.h constructor that could explain why Slackware segfaults but not the other distributions, see stacktrace at #4789?

There is no undefined behaviour in the path.h. The problem is in the commit. g_args isn't constructed yet.

Apr 28 2019, 3:44 AM

Apr 26 2019

vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#76397, @elexis wrote:

This one does & 0xFFFF.

This line will present in the code anyway, because it's for result, not for seed.

Apr 26 2019, 8:39 PM
vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#76343, @elexis wrote:
Apr 26 2019, 8:12 PM

Apr 25 2019

vladislavbelov accepted D1584: Seed random sounds.
Apr 25 2019, 11:53 PM
vladislavbelov committed rP22228: Fixes a misprint that was introduced in rP22143..
Fixes a misprint that was introduced in rP22143.
Apr 25 2019, 8:59 PM
elexis awarded D1847: Optimise out of frustum rendering of textures overlays a Like token.
Apr 25 2019, 2:15 PM
vladislavbelov added a comment to D1847: Optimise out of frustum rendering of textures overlays.

I think perf impact is negligible (it's definitely better, but probably not by much, and the main impact is likely a lower number of draw calls).

Yeah, the same thoughts. It shouldn't increase and might decrease rendering time. So it's worth to not render invisible objects.

Apr 25 2019, 12:36 PM
vladislavbelov added a comment to D1847: Optimise out of frustum rendering of textures overlays.
In D1847#76051, @Stan wrote:

What's the perf gain like ?

Apr 25 2019, 12:26 PM
vladislavbelov added inline comments to rP22225: Fix D1491 which introduced an ENSURE that should not have been there..
Apr 25 2019, 12:20 PM
vladislavbelov updated the diff for D1847: Optimise out of frustum rendering of textures overlays.
Apr 25 2019, 1:50 AM
vladislavbelov created D1847: Optimise out of frustum rendering of textures overlays.
Apr 25 2019, 1:48 AM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 25 2019, 12:04 AM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 25 2019, 12:03 AM

Apr 24 2019

vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 24 2019, 9:46 PM
vladislavbelov added a comment to D1584: Seed random sounds.

I don't have any objection to use the fast random function, because it won't be used for visual things where non-uniformness is visible.

Apr 24 2019, 9:12 PM
vladislavbelov added a comment to D1804: Fixes black water glitches for certain wind angles.

I think I'll check out how that changes because that might have been WAD by me tbh. Up to personal preference I guess.

The current patch is just a workaround to remove glitches. The shader code should be refactored in future.

Apr 24 2019, 3:18 PM
vladislavbelov added a comment to D1804: Fixes black water glitches for certain wind angles.

Right, I missed that (didn't actually delve back into this file much). I'd much prefer changing it to foaminterp.x * abs(WindCosSin.x - WindCosSin.y); then to be honest.

Apr 24 2019, 2:13 PM

Apr 23 2019

vladislavbelov added a comment to D1804: Fixes black water glitches for certain wind angles.

Wouldn't it be better to max(0, ...) the whole calculation? This is magic-graphical-code but you're changing behaviour a lot here.

It makes less sense, because you'll get no flares for some angles.

Apr 23 2019, 10:24 PM
vladislavbelov accepted D1845: Fix VS2013 Build.

I tested and it works for me on VS2013.

Apr 23 2019, 9:59 PM
vladislavbelov added a comment to D1784: Fixed assert fails in Actor Editor.
In D1784#75860, @Stan wrote:

For Windows we officially dropped it when we committed #5098. For the rest of the platforms most of the ticket are about being compatible, but there is no clear decision.

What's about 2.9?

Apr 23 2019, 3:36 PM · Windows Developers
vladislavbelov added a comment to rP22207: Actually add the test file for rP22205..

Any chance you can test that?

I can test on VS2013.

Apr 23 2019, 11:42 AM
vladislavbelov added a comment to D1784: Fixed assert fails in Actor Editor.
In D1784#75828, @Itms wrote:

I think that if we keep supporting 2.8 we need to build patches with it, else we will commit a lot of 3.0+ changes without noticing. I believe the overwhelming majority of distributions used by our devs and contributors ships 3+.
I would be in favor of officially moving to 3+, which is possible if it is available (not necessarily the default,since it is for devs and package maintainers) on the platforms you mention.

I definitely agree to move forward and drop old versions. But probably we still have users with OS that uses 2.8 (and sometimes can't use newer versions without pain) by default or we recommend to use 2.8 by our build instructions.

Apr 23 2019, 11:41 AM · Windows Developers
vladislavbelov updated subscribers of D1784: Fixed assert fails in Actor Editor.
Apr 23 2019, 12:25 AM · Windows Developers
vladislavbelov updated subscribers of rP22207: Actually add the test file for rP22205..
Apr 23 2019, 12:21 AM
vladislavbelov committed rP22214: Refactor and cleanup of CGameView..
Refactor and cleanup of CGameView.
Apr 23 2019, 12:12 AM
vladislavbelov closed D1571: Refactor and cleanup of CGameView.
Apr 23 2019, 12:12 AM

Apr 22 2019

vladislavbelov committed rP22213: Simple cleanup of Shapes, removes old style format..
Simple cleanup of Shapes, removes old style format.
Apr 22 2019, 11:53 PM
vladislavbelov closed D1809: Simple cleanup of Shapes.
Apr 22 2019, 11:53 PM
vladislavbelov accepted D1823: Replace includes uniform_foo with uniform_foo_distribution.
Apr 22 2019, 11:36 PM
vladislavbelov added inline comments to rP22205: Add tests for the hierarchical pathfinder..
Apr 22 2019, 11:27 PM
vladislavbelov accepted D1491: Const-Correct the long range pathfinder.
Apr 22 2019, 10:54 PM

Apr 15 2019

vladislavbelov added a comment to D1823: Replace includes uniform_foo with uniform_foo_distribution.

Which version of boost starts support it?

Apr 15 2019, 1:21 AM

Apr 10 2019

Silier awarded D1763: Removes duplication of Clamp function a Like token.
Apr 10 2019, 9:36 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 10 2019, 8:56 PM

Apr 9 2019

vladislavbelov accepted D1821: Remove useless Random class.

I suppose we won't loose distribution here, at least we won't notice it.

Apr 9 2019, 9:42 PM
vladislavbelov added a comment to D1821: Remove useless Random class.

The WELL512 usage was introduces in rP10446 along a bug fixing. So the only question is: would be enough to have the mt19937 to prevent the bug.

Apr 9 2019, 9:35 PM
vladislavbelov added a comment to D1584: Seed random sounds.

mt19937 seems ok for me, but I'm worrying about performance. Could you test how many calls of the UploadPropertiesAndPlay function we have on the biggest map with biggest number of units per second?

Apr 9 2019, 9:29 PM
vladislavbelov added a comment to D1821: Remove useless Random class.
In D1821#74573, @Stan wrote:

That's a test so it doesn't matter much.

Actually we run all tests on our server for each diff, so it does matters if it significantly slower.

Apr 9 2019, 9:20 PM
vladislavbelov added a comment to D1821: Remove useless Random class.

What's about performance?

Apr 9 2019, 9:10 PM
vladislavbelov accepted rP22151: New berry bushes by BigTiger.
Apr 9 2019, 4:38 PM
vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#74541, @Stan wrote:
Apr 9 2019, 11:14 AM

Apr 8 2019

vladislavbelov added inline comments to D1571: Refactor and cleanup of CGameView.
Apr 8 2019, 10:15 PM

Apr 7 2019

vladislavbelov added a comment to D1814: Unused iterator in Xeromyces.

@Angen thank you for the patch!

Apr 7 2019, 9:31 PM
vladislavbelov committed rP22170: Removes unused iterator in Xeromyces. Its usage was removed in rP16888..
Removes unused iterator in Xeromyces. Its usage was removed in rP16888.
Apr 7 2019, 8:23 PM
vladislavbelov closed D1814: Unused iterator in Xeromyces.
Apr 7 2019, 8:23 PM
vladislavbelov accepted D1814: Unused iterator in Xeromyces.

I tested the patch and it works. Since the problem is reported by cppcheck (probably by some compiler too) I don't see a reason to refactor the whole file, because it's a bit other problem.

Apr 7 2019, 8:21 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 7 2019, 12:42 PM

Apr 6 2019

vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#74336, @Stan wrote:

Does setting the seed reset the rng ?

Apr 6 2019, 6:11 PM
vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#74323, @Stan wrote:

Can't really make it static since we always want to generate the same number for a given Actor seed.

Apr 6 2019, 4:58 PM
vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#74317, @Stan wrote:
Apr 6 2019, 4:21 PM
vladislavbelov added inline comments to D1622: [CSlider] On click move the slider-button to the mouse position.
Apr 6 2019, 4:05 PM
vladislavbelov added inline comments to D1622: [CSlider] On click move the slider-button to the mouse position.
Apr 6 2019, 4:00 PM
vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#74312, @Stan wrote:

1000000 Samples

Could you attach the source?

Apr 6 2019, 3:59 PM

Apr 5 2019

vladislavbelov added a comment to D1584: Seed random sounds.
In D1584#74289, @Stan wrote:

How should I test it ? I'm not really confident with profiling :)

Apr 5 2019, 8:37 PM
vladislavbelov added a comment to D1584: Seed random sounds.

But! mt19937 could be a bit slower of faster than the previous solution for many sounds, could you test it?

Apr 5 2019, 8:03 PM
vladislavbelov accepted D1584: Seed random sounds.

I tested the patch, it works well. We already use mt19937 but from boost. I don't see any strong reason to use the boost one. Maybe someone wants to replace them by the std:: version in future. By https://trac.wildfiregames.com/wiki/CppSupport all supported compilers support <random>.

Apr 5 2019, 8:01 PM
vladislavbelov added inline comments to rP22161: Fixes.
Apr 5 2019, 5:45 PM
vladislavbelov added a comment to D1816: Use all three color channels when loading heightmaps following rP21113.
In D1816#74161, @Angen wrote:

clamp has int as parameters (32 bits), std::max returns only 8 bits so might not bee needed. But I am not sure about that.

Clamp is a template function, so a compiler deduce a type from its arguments.

Apr 5 2019, 11:37 AM
vladislavbelov added inline comments to D1622: [CSlider] On click move the slider-button to the mouse position.
Apr 5 2019, 1:00 AM

Apr 4 2019

vladislavbelov added inline comments to D1622: [CSlider] On click move the slider-button to the mouse position.
Apr 4 2019, 11:42 PM
vladislavbelov requested changes to D1543: Don't require application restart to change the pauseonfocusloss option.
Apr 4 2019, 10:51 PM
vladislavbelov added inline comments to D1574: Get XML syntax errors not only the first time that file is loaded.
Apr 4 2019, 10:44 PM
vladislavbelov added a comment to rP22151: New berry bushes by BigTiger.

The model works now without any error, but the berries looks too polygonized. Did you smooth normals?

Apr 4 2019, 9:09 PM
vladislavbelov added a comment to D1799: [Windows] Add information about data paths to error window.
In D1799#74092, @Itms wrote:

If you want go ahead! Else I can commit it in an hour or two

Apr 4 2019, 8:42 PM
vladislavbelov added a comment to D1799: [Windows] Add information about data paths to error window.
In D1799#74058, @Itms wrote:

Still good after testing! The text improvement is a good idea yeah ?

Apr 4 2019, 8:17 PM

Apr 3 2019

vladislavbelov added a comment to D1799: [Windows] Add information about data paths to error window.
In D1799#74045, @Itms wrote:

Do you want me to test on Windows @vladislavbelov?

As you want, I just wanted you check the text :)

Apr 3 2019, 9:30 PM
vladislavbelov added inline comments to D1812: Remove unused variable from ModelRenderer.
Apr 3 2019, 8:19 PM
vladislavbelov accepted D1799: [Windows] Add information about data paths to error window.

The C++ part is clear for me.

Apr 3 2019, 7:18 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 6:56 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 6:54 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 6:24 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 5:55 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 4:38 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 3:55 PM
vladislavbelov added a comment to D1809: Simple cleanup of Shapes.
In D1809#73950, @elexis wrote:

Then add it to CC.

CC is to allow people to chose between multiple syntactically and semantically correct solutions.
It's not a convention that we avoid bugs.

But CC helps to make less mistakes.

Apr 3 2019, 3:00 PM
vladislavbelov added inline comments to D1682: Cleanup RallyPointRenderer.
Apr 3 2019, 1:55 PM
vladislavbelov added inline comments to D1741: Fix some warning for vs2015 in Atlas.
Apr 3 2019, 1:49 PM
vladislavbelov added inline comments to D1584: Seed random sounds.
Apr 3 2019, 1:45 PM
vladislavbelov added a comment to D1809: Simple cleanup of Shapes.
In D1809#73924, @elexis wrote:

This commit is not a cleanup, but a bugfix with some additional cleanup.
So it makes sense to add a comment so that people don't reintroduce the bug.

Then add it to CC.

Apr 3 2019, 1:40 PM
vladislavbelov added inline comments to D1763: Removes duplication of Clamp function.
Apr 3 2019, 1:22 PM
vladislavbelov added a comment to D1809: Simple cleanup of Shapes.
In D1809#73904, @elexis wrote:

But even better might be adding the comment to the code itself, so that people stubmle upon it while reading the code.

About what? It's too common thing and it's related to many places in the code. So I'd prefer to add comments to our CC.

Apr 3 2019, 11:01 AM
vladislavbelov added inline comments to D1682: Cleanup RallyPointRenderer.
Apr 3 2019, 10:55 AM
vladislavbelov requested changes to D1682: Cleanup RallyPointRenderer.
Apr 3 2019, 3:06 AM
vladislavbelov raised a concern with rP22151: New berry bushes by BigTiger.

I got an error on the African Plains map:

ERROR: Could not load mesh 'art/meshes/gaia/berry_bush_02.dae'
ERROR: CObjectEntry::BuildVariation(): Model art/meshes/gaia/berry_bush_02.dae failed to load
Apr 3 2019, 2:34 AM
vladislavbelov added inline comments to D1741: Fix some warning for vs2015 in Atlas.
Apr 3 2019, 12:53 AM