Hey,
I am doing some simulations with autonomous agents that are controlled by an artificial neural network.
The input into the ANNs is the world rendered from their perspective i.e a renderTexture with a corresponding view.
Since i'm new to SFML i'm not sure how to do this in the fastest way possible.
My current way is just simply:
renderTexture.setView(...);
renderTexture.draw(...);
image = renderTexture.getTexture().copyToImage();
... feed pixels to ANN
Is there anyway to do this with better performance or do you have any better approach?