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

[Depends on #8332] Integrate fgviewer to the engine side #8344

Merged
merged 22 commits into from
Jan 31, 2025

Conversation

show50726
Copy link
Contributor

This PR should be merged after #8332 is in.

In this PR, I intergrate the fgviewer to the filament engine side, right now the engine will update the framegraph info to the debug server every frame.

  • Add FrameGraph::getFrameGraphInfo method to convert current state to fgviewer::FrameGraphInfo
  • Add fgviewer::DebugServer member to the Engine class and initialize it as the engine loop starts
  • When a view is created, register it to the fgviewer::DebugServer and unregister it as it gets terminated
  • Update the info in the debug server in Renderer::renderJob after FrameGraph is compiled

@show50726 show50726 added the internal Issue/PR does not affect clients label Jan 10, 2025
@show50726 show50726 force-pushed the dev/fginfo-conversion branch from 6b0cfc9 to ccc4f8a Compare January 17, 2025 16:38
Copy link
Collaborator

@pixelflinger pixelflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use mCameCase for member variable name. Also see
https://github.com/google/filament/blob/main/CODE_STYLE.md
For code style to follow.

other than that, LGTM.

# Conflicts:
#	libs/fgviewer/include/fgviewer/DebugServer.h
#	libs/fgviewer/include/fgviewer/FrameGraphInfo.h
#	libs/fgviewer/src/FrameGraphInfo.cpp
@show50726
Copy link
Contributor Author

just use mCameCase for member variable name. Also see https://github.com/google/filament/blob/main/CODE_STYLE.md For code style to follow.

other than that, LGTM.

I updated the naming, thanks for the reminder! PTAL.

@show50726 show50726 enabled auto-merge (squash) January 31, 2025 23:26
@show50726 show50726 merged commit 793f2b4 into google:main Jan 31, 2025
10 checks passed
@show50726 show50726 deleted the dev/fginfo-conversion branch February 2, 2025 16:46
show50726 added a commit that referenced this pull request Feb 15, 2025
…8379)

* Introduce FrameGraphInfo class

* Move the assignment into pimpl

* Make ctors explicit

* Add ctors to fg info structs

* Revert the macro change to align with existing

* Address the comments

* Remove pimpl and move func def to .cc

* Fix

* Convert the FrameGraph to FrameGraphInfo

* Initialize and update debug server on engine side

* Fix compile error

* Address the comments

* Update

* Use camelCase

* Use camelCase

* Update

* Add JsonWriter to convert fginfo to json

* Add getStatus api and implement it

* Add increment

* Implement GET apis

* Fix compile error

* Update

* Use c_str_safe

* Add operator== for FrameGraphInfo

* Call updateFrameGraph in appropriate locations

* Address the comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants