Page MenuHomeWildfire Games

Draws entities on minimap via triangles instead of points
ClosedPublic

Authored by vladislavbelov on Feb 26 2022, 11:49 AM.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP26493: Draws entities on minimap via triangles instead of points.
Summary

Removes points to make it looks the same for all backends.

Test Plan
  1. Apply the patch and compile the game
  2. Check that entities on minimap look similar or at least a similar size
  3. Compare performance
  4. Check GL and GL ARB backends
  5. Check any map with many number of entities
  6. Compare visual of entities on minimap for tiny and giant maps

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vladislavbelov edited the test plan for this revision. (Show Details)Feb 26 2022, 11:56 AM

Successful build - Chance fights ever on the side of the prudent.

Debug:
    14>e:\jenkins\workspace\vs2015-differential\source\renderer\silhouetterenderer.cpp(447): warning C4100: 'deviceCommandContext': unreferenced formal parameter [E:\Jenkins\workspace\vs2015-differential\build\workspaces\vs2017\graphics.vcxproj]
Release:
    14>e:\jenkins\workspace\vs2015-differential\source\renderer\silhouetterenderer.cpp(447): warning C4100: 'deviceCommandContext': unreferenced formal parameter [E:\Jenkins\workspace\vs2015-differential\build\workspaces\vs2017\graphics.vcxproj]

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/6816/display/redirect

vladislavbelov edited the test plan for this revision. (Show Details)Feb 26 2022, 11:56 AM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/5724/display/redirect

Successful build - Chance fights ever on the side of the prudent.

builderr-debug-gcc7.txt
../../../source/renderer/SilhouetteRenderer.cpp: In member function 'void SilhouetteRenderer::RenderDebugBounds(Renderer::Backend::GL::CDeviceCommandContext*)':
../../../source/renderer/SilhouetteRenderer.cpp:447:48: warning: unused parameter 'deviceCommandContext' [-Wunused-parameter]
  Renderer::Backend::GL::CDeviceCommandContext* deviceCommandContext)
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
builderr-release-gcc7.txt
../../../source/renderer/SilhouetteRenderer.cpp: In member function 'void SilhouetteRenderer::RenderDebugBounds(Renderer::Backend::GL::CDeviceCommandContext*)':
../../../source/renderer/SilhouetteRenderer.cpp:447:48: warning: unused parameter 'deviceCommandContext' [-Wunused-parameter]
  Renderer::Backend::GL::CDeviceCommandContext* deviceCommandContext)
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/7422/display/redirect

vladislavbelov requested review of this revision.Feb 26 2022, 12:08 PM
vladislavbelov added a subscriber: Langbart.

@Langbart , could you check the patch?

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/6817/display/redirect

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/5725/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/6818/display/redirect

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/5726/display/redirect

Stan added a subscriber: Stan.Feb 26 2022, 7:36 PM
Apply the patch and compile the game ... ✔️
Check that entities on minimap look similar or at least a similar size... ✔️
Compare performance ... ✔️ (Seems there isn't any difference)
Check GL and GL ARB backends... ✔️ (Seems to work for both)
Check any map with many number of entities... ? Seems with the patch the enties are drawn more precisely
Compare visual of entities on minimap for tiny and giant maps

Seems the minimap textures, position do not get updated in Atlas when resizing the map...

After reloading, seems visible about 2400 units.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 26 2022, 9:30 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.