Skip to content

Headless renderer#14

Merged
AI-WAIFU merged 50 commits intodevelopfrom
headless-renderer
Mar 19, 2023
Merged

Headless renderer#14
AI-WAIFU merged 50 commits intodevelopfrom
headless-renderer

Conversation

@neverix
Copy link
Copy Markdown
Member

@neverix neverix commented Dec 8, 2022

Add compact, short information about your PR for easier understanding:

  • Add headless renderer
  • Changes a few render targets

To do

This PR is a Work in Progress

  • Most of the work
  • Hide the window

How to test

make -j8 && python hacking_testing/test_loop.py

@AI-WAIFU AI-WAIFU marked this pull request as ready for review February 9, 2023 16:46
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think these config changes shouldn't be included because I was just adding them to get the test loop to run in colab. but then it turned out that only empty frames were sent from minetest.

@rk1a
Copy link
Copy Markdown

rk1a commented Feb 9, 2023

Overall I am not quite sure why we would want to merge this now. We already have the semi headless mode using Xvfb.
The code in this branch hides the window, but it turned out this is only possible with a running XServer again requiring Xvfb (see #46).
So from what I know this would not add any useful functionality while adding the additional SDL dependency.

What would be good to know is if there is a performance difference between the current state of develop and this branch.
Also maybe this somehow does work without Xvfb on the TPU server? But seems like #46 is a general problem.

Comment thread src/CMakeLists.txt
${GMP_INCLUDE_DIR}
${JSON_INCLUDE_DIR}
${LUA_BIT_INCLUDE_DIR}
${SDL2_INCLUDE_DIR}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not needed.

Comment thread src/CMakeLists.txt
${ZMQ_INCLUDE_DIR}
${ZMQPP_INCLUDE_DIR}
${SQLITE3_INCLUDE_DIR}
${SDL2_INCLUDE_DIR}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not needed.

Comment thread minetest.conf Outdated
@@ -1,4 +1,5 @@
name = MinetestAgent
update_last_checked = 1670529488
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Probably shouldn't be committed.

Comment thread src/CMakeLists.txt
${X11_LIBRARIES}
${SOUND_LIBRARIES}
${SQLITE3_LIBRARY}
${SDL2_LIBRARY}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not needed.

Comment thread .gitignore

# Optional user provided library folder
lib/irrlichtmt
# TODO: don't add irrlichtmt, apply patch from CMakeLists.txt
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't merge TODO comments.

Comment thread CMakeLists.txt Outdated



if(BUILD_CLIENT AND BUILD_HEADLESS)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This should not be in both CMakeLists.txt and src/CMakeLists.txt.

Comment thread src/CMakeLists.txt
# Set some random things default to not being visible in the GUI
mark_as_advanced(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)

if(BUILD_CLIENT AND BUILD_HEADLESS)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This should not be in both CMakeLists.txt and src/CMakeLists.txt.

Comment thread src/client/client.cpp Outdated
if (!raw_image)
return;

// warningstream << "got data" << raw_image->getDimension().Width << std::endl;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't merge commented out code.

@AI-WAIFU AI-WAIFU merged commit 34a44b2 into develop Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants