8000 GRAPHICS: Add new flexible takeImage method by Nostritius · Pull Request #389 · xoreos/xoreos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

GRAPHICS: Add new flexible takeImage method #389

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nostritius
Copy link
Contributor

This Method aims to be a more flexible approach for creating screenshots especially targeted towards the save game screenshot creation. Maybe it might even replace someday the takeScreenshot Method? It contains std::future and therefore needs C++11.

@DrMcCoy
Copy link
Member
DrMcCoy commented Aug 6, 2020

Hmm, what's the reason for using futures here? Does taking a screenshot really take so much time that we need to do that asynchronously?

@Nostritius
Copy link
Contributor Author

The Problem with the current architecture is that the renderer and the game logic are running in different threads. The current approach is good, if you want to take a screenshot and just throw it into a file and don't care from the point of view of the game. But this method was intended for creating screenshots which can be used for the save games, where you actually need the image inside the game logic.

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.

2 participants
0