• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 33 34 35 36 37 ... 117 Next »

Getting Visual Output Real time
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Getting Visual Output Real time
09-19-2015, 04:45 AM
#1
PhC
Unregistered
 
Dear developpers,

I am currently looking for an efficient way to get access to the visual output of Dolphin in real time. This is for a machine learning project i'm doing on my free time where a neural network would learn to play. For this to work, I would need to output the GUI data in real time in my python console. I'm more knowledgeable about the machine learning part, but not so much redirecting the visual output pipeline.

Let me know if you have an idea of how to do this in an efficient manner (have to be able to play as well).

Cheers!
Reply
09-21-2015, 06:36 PM
#2
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
IMO the easiest way is to enable "RealXFB", so you already have anything in main memory for displaying. You'll loose upscaling, but I doubt that matters for automatic playing Tongue

Alternative, you could use framedumping. It's a huge slowdown right now, but it could be improved to always just fetch the last frame. So it won't stall the GPU for such a long time.
Find
Reply
09-22-2015, 03:33 PM
#3
PhC
Unregistered
 
(09-21-2015, 06:36 PM)degasus Wrote: IMO the easiest way is to enable "RealXFB", so you already have anything in main memory for displaying. You'll loose upscaling, but I doubt that matters for automatic playing Tongue

Alternative, you could use framedumping. It's a huge slowdown right now, but it could be improved to always just fetch the last frame. So it won't stall the GPU for such a long time.

Thanks for the answe!

I've opted for the framedump as it seems easier. I would be interested in being able to use RealXFB thought, but I can't find how to access the visual data subsequently.

Thank you for your time!
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode