• 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 ... 37 38 39 40 41 ... 116 Next »

Building Dolphin from source / running POVRay
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Building Dolphin from source / running POVRay
01-14-2015, 09:39 AM
#1
Stevie-O Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Jan 2015
Hello everyone!

My brother suggested that I see about lending any of my software engineering experience to the Dolphin project.

I pulled the source (master branch) from GitHub and installed VS2013, and attempted to run the 'povray.elf' file from the Dolphin-Benchmark.7z archive in the thread "New Dolphin CPU Benchmark - NO GAME REQUIRED".

And it crashed Sad  I poked around and the memory at RIP was all zeroes, suggesting a malfunction in the JITter.
So I switched to interpreted mode, and it didn't crash, but I got not display output whatsoever.  In particular, I did not even see the yellow CPU information that's displayed at the beginning of EmuThread() in Core.cpp.

I then tried to run the pre-built copy of Dolphin that was included in Dolphin-Benchmark.7z from the aforementioned thread, and it ran the povray test flawlessly (total duration: about 20 minutes).

I asked delroth and he said that the pre-built copy was built from commit 0a5bd83af2917534501537c36d7ed25cd1cef31c.  So I checked out and built that version, and the new results are:

* JITted mode crashes just like before (access violation, memory at RIP is all zeroes)
* Interpreted mode is interrupted after several seconds with the message:

Code:
---------------------------
Warning
---------------------------

IntCPU: Unknown instruction 00000001 at PC = 833db7e0  last_PC = 833db7dc  LR = 80162188

---------------------------
Yes   No  
---------------------------


So in summary:

1. Pre-built Dolphin.exe from Dolphin-Benchmark.7z runs fine
2. Dolphin built from source (master) crashes in JIT mode, no display output in interpreted mode
3. Dolphin built from source (0a5bd83), which should match the pre-built version, crashes in JIT mode, semi-crashes in interpreted mode

Even if the latest dev branch (#2) had bugs, I would still expect #3 to work exactly the same as #1, but it doesn't.

What am I doing wrong?
Find
Reply
01-14-2015, 09:49 AM
#2
Fiora Offline
x86 JIT Princess
**********
Developers (Some Administrators and Super Moderators)
Posts: 237
Threads: 0
Joined: Aug 2014
Iirc the povray test needs XFB for the output and the SD card enabled
Website Find
Reply
01-14-2015, 10:08 AM
#3
Stevie-O Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Jan 2015
(01-14-2015, 09:49 AM)Fiora Wrote: Iirc the povray test needs XFB for the output and the SD card enabled

I assume that "XFB" means that I needed to go to:
Graphics Options
"Hacks" Tab
External Framebuffer -> Real

which I already did.

... and AHA!

I had to do two more things:
(1) Replace my sd.raw in %USERPROFILE%\Documents\Dolphin Emulator\Wii with the one in the "Dolphin-Benchmark\User\Wii" from the archive
(2) Go to (Configuration) -> "Wii" tab -> check "Insert SD Card"

and povray is currently building photon maps! Whatever that means.

Now I have a known-good starting point. Thank you, Fiora!
Find
Reply
01-14-2015, 11:20 AM
#4
Fiora Offline
x86 JIT Princess
**********
Developers (Some Administrators and Super Moderators)
Posts: 237
Threads: 0
Joined: Aug 2014
I apologize for the overly succinct phone-posted explanations, but it seems like you got it anyways xD
Website Find
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