-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Create data transmitting class for fgviewer #8332
Conversation
Sorry I had one more comment that somehow got lost in the shuffle. Your code has a lot of definitions of this form:
I think typically
is equivalent and more common. Or if you're transferring content ownership, then
is the common pattern. Any particular reason for choosing that pattern? |
My main purpose is to avoid copy since copy vector every frame might be expensive. According to https://stackoverflow.com/a/51706522, I think the difference between my impl and transferring content ownership impl you provided is:
The second one is slightly more optimized, and the first one has simpler codes. I'm okay with both impls. What do you think? |
I see. I learned something new then. I don't have a strong preference either way. I don't know if Mathias has any thoughts on this or not. Regardless, lgtm! |
Offline discussed with @pixelflinger, we believe we might not need to use pimpl pattern in Also, I move the function definitions into .cc file to avoid inline code and the following code generation. |
FrameGraphInfo
class for transmitting data between the engine and the serverDebugServer
api to align with the design