Sound and graphical lagging

Issue:
After I click on the icon for the game it just has a black screen for a couple of seconds then when it starts to play the sound and graphics were lagging.

System Information

  • Operating System: Windows 10 Pro version 1709 OS build 16299.192
  • CPU: AMD FX™-8350 Eight-Core Processor 4.00 GHz
  • GPU: GeForce GTX 750 Ti Currently installed driver 390.77
  • Citra Version (found in title bar): Citra Nightly | HEAD-587450c
  • Game: Phoenix Wright Ace Attorney Spirit of Justice EUR Decrypted PW:AA - Spirit of justice File type NCCH Size 846.8 MiB
  • Screenshot of Issue (include the full Citra window including titlebar):
    https://sta.sh/01ftes4qmlnx
    (Screenshot and video are from 2 different attempts)
    Log:

    [ 0.000000] Loader core/loader/loader.cpp:GetLoader:137: File D:/Emulator/3ds/Games/Phoenix Wright Ace Attorney Spirit of Justice EUR Decrypted.3ds has a different type than its extension.
    [ 0.329072] Frontend citra_qt/main.cpp:CheckForUpdates:464: Update check started
    [ 2.057196] Frontend citra_qt/main.cpp:OnUpdateFound:477: No updates found
    [ 358.227484] Frontend citra_qt/main.cpp:BootGame:604: Citra starting…
    [ 358.472764] Loader core/loader/loader.cpp:GetLoader:137: File D:/Emulator/3ds/Games/Phoenix Wright Ace Attorney Spirit of Justice EUR Decrypted.3ds has a different type than its extension.
    [ 358.479601] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:488: GL_VERSION: 3.3.0 NVIDIA 390.77
    [ 358.479818] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:489: GL_VENDOR: NVIDIA Corporation
    [ 358.480017] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:490: GL_RENDERER: GeForce GTX 750 Ti/PCIe/SSE2
    [ 358.484226] Loader core/loader/ncch.cpp:Load:159: Program ID: 000400000018FA00
    [ 358.484718] Service.FS core/file_sys/ncch_container.cpp:OpenFile:109: Failed to open C:\Users\RageShadey\AppData\Roaming/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004000e/0018fa00/content/00000000.app
    [ 358.534995] Loader core/hle/kernel/process.cpp:ParseKernelCaps:114: ExHeader kernel version: 2.50
    [ 358.537371] Service.CFG core/hle/service/cfg/cfg.cpp:SetPreferredRegionCode:615: Preferred region code set to 2
    [ 358.589035] Service.SRV core/hle/service/sm/srv.cpp:RegisterClient:48: (STUBBED) called
    [ 358.695600] Service.SRV core/hle/service/sm/srv.cpp:EnableNotification:70: (STUBBED) called
    [ 358.696643] Service.APT core/hle/service/apt/apt.cpp:GetLockHandle:274: (STUBBED) called handle=0x00030008 applet_attributes=0x00000000
    [ 358.697452] Service.APT core/hle/service/apt/apt.cpp:SetScreenCapPostPermission:620: (STUBBED) screen_capture_post_permission=0
    [ 358.697709] Service.NDM core/hle/service/ndm/ndm.cpp:OverrideDefaultDaemons:204: (STUBBED) default_daemon_bit_mask=0x0000000F
    [ 358.697990] Service.NDM core/hle/service/ndm/ndm.cpp:SuspendDaemons:89: (STUBBED) daemon_bit_mask=0x00000009
    [ 358.698342] Service.PTM core/hle/service/ptm/ptm.cpp:CheckNew3DS:130: (STUBBED) called isNew3DS = 0x00000000
    [ 358.698525] Service.APT core/hle/service/apt/apt.cpp:CheckNew3DSApp:800: (STUBBED) called
    [ 358.698798] Service.FS core/hle/service/fs/fs_user.cpp:InitializeWithSdkVersion:811: (STUBBED) called, version: 0x0B0301C8
    [ 358.702309] Service.FS core/file_sys/savedata_archive.cpp:CreateFile:207: C:\Users\RageShadey\AppData\Roaming/Citra/nand/data/00000000000000000000000000000000/extdata/00048000/F000000B/user/gamecoin.dat already exists
    [ 358.702713] Service.APT core/hle/service/apt/apt.cpp:SetAppCpuTimeLimit:521: (STUBBED) called cpu_percent=25, value=1
    [ 359.210654] Service.SRV core/hle/service/sm/srv.cpp:Subscribe:145: (STUBBED) called, notification_id=0x207
    [ 359.211289] Service.SRV core/hle/service/sm/srv.cpp:Subscribe:145: (STUBBED) called, notification_id=0x209
    [ 359.288667] Service.APT core/hle/service/apt/apt.cpp:NotifyToWait:251: (STUBBED) app_id=768
    [ 359.289430] Service.APT core/hle/service/apt/apt.cpp:AppletUtility:506: (STUBBED) called command=0x00000007, input_size=0x00000004, output_size=0x00000001, input_addr=0x0FFFDA20, output_addr=0x0FFFD9EC
    [ 359.289744] Service.APT core/hle/service/apt/apt.cpp:AppletUtility:506: (STUBBED) called command=0x00000004, input_size=0x00000001, output_size=0x00000001, input_addr=0x0FFFD9E8, output_addr=0x0FFFD9EC
    [ 359.290053] Service.APT core/hle/service/apt/apt.cpp:AppletUtility:506: (STUBBED) called command=0x00000004, input_size=0x00000001, output_size=0x00000001, input_addr=0x0FFFDA88, output_addr=0x0FFFDA8C
    [ 359.290279] Service core/hle/service/service.cpp:HandleSyncRequest:97: unknown / unimplemented function ‘GetAppletProgramInfo’: port=APT:A, cmd_buff[1]=0x301, cmd_buff[2]=0x11
    [ 359.290837] Service core/hle/service/service.cpp:HandleSyncRequest:97: unknown / unimplemented function ‘Initialize’: port=nim:aoc
    [ 359.291379] Kernel.SVC core/hle/kernel/svc.cpp:CreateThread:754: Newly created thread must run in the SysCore (Core1), unimplemented.
    [ 359.294228] Service.GSP core/hle/service/gsp/gsp_gpu.cpp:AcquireRight:663: called flag=00000000 process=10 thread_id=0
    [ 360.394993] Service.DSP core/hle/service/dsp_dsp.cpp:LoadComponent:148: Firmware hash: 0xdcdb8c683bf28fdd
    [ 360.395517] Service.DSP core/hle/service/dsp_dsp.cpp:LoadComponent:152: Structures hash: 0x228655de1258d999
    [ 360.395738] Service.DSP core/hle/service/dsp_dsp.cpp:LoadComponent:157: (STUBBED) called size=0xC25C, prog_mask=0x000000FF, data_mask=0x001300FF, buffer=0x0067BED0
    [ 360.396041] Service.DSP core/hle/service/dsp_dsp.cpp:RegisterInterruptEvents:248: Registered type=2, pipe=2, event_handle=0x00138039
    [ 360.397498] Service.DSP core/hle/service/dsp_dsp.cpp:GetSemaphoreEventHandle:174: (STUBBED) called
    [ 360.398392] Service.DSP core/hle/service/dsp_dsp.cpp:SetSemaphoreMask:469: (STUBBED) called mask=0x00002000
    [ 360.400705] Audio.DSP audio_core/hle/pipe.cpp:PipeWrite:134: Application has requested initialization of DSP hardware
    [ 360.402178] Service.DSP core/hle/service/dsp_dsp.cpp:SetSemaphore:271: (STUBBED) called
    [ 360.403438] Service.DSP core/hle/service/dsp_dsp.cpp:SetSemaphore:271: (STUBBED) called
    [ 362.510891] Service.FS core/hle/service/fs/fs_user.cpp:OpenArchive:469: failed to get a handle for archive archive_id=0x00000004 archive_path=[Empty]
    [ 362.987964] Service.AM core/hle/service/am/am.cpp:ListDataTitleTicketInfos:787: (STUBBED) ticket_count=0x00000001, title_id=0x0004008c0018fa00, start_index=0x00000000, ticket_info_out=0x08A15D10
    [ 364.222885] Service.BOSS core/hle/service/boss/boss.cpp:InitializeSession:40: (STUBBED) unk_param=0x0000000000000000, translation=0x00000020, unk_param4=0x00000000
    [ 364.225632] Service.BOSS core/hle/service/boss/boss.cpp:GetOptoutFlag:162: output_flag=0
    [ 364.226309] Service.BOSS core/hle/service/boss/boss.cpp:GetTaskIdList:229: (STUBBED) called
    [ 364.226976] Service.BOSS core/hle/service/boss/boss.cpp:ReceiveProperty:397: (STUBBED) unk_param1=0x00000035, buff_size=0x00000002, translation=0x0000002C, buff_addr=0x0FFFD670
    [ 364.228063] Service.BOSS core/hle/service/boss/boss.cpp:ReceiveProperty:397: (STUBBED) unk_param1=0x00000036, buff_size=0x00000400, translation=0x0000400C, buff_addr=0x0FFFD678
    [ 364.229162] Service.BOSS core/hle/service/boss/boss.cpp:GetNsDataIdList:269: (STUBBED) unk_param1=0xFFFFFFFF, unk_param2=0x00000040, unk_param3=0x0FFF0000, unk_param4=0x00000000, translation=0x0000100C, buff_addr=0x0853345C, buff_size=0x00000100
    [ 365.376057] Render.OpenGL video_core/renderer_opengl/gl_shader_gen.cpp:SampleTexture:222: Using Texture3 without enabling it
    [ 365.387742] Render.OpenGL video_core/renderer_opengl/gl_shader_gen.cpp:SampleTexture:222: Using Texture3 without enabling it
    [ 365.389874] HW.GPU video_core/renderer_opengl/gl_shader_gen.cpp:SampleTexture:207: Unhandled texture type 1
    [ 365.489866] Render.OpenGL video_core/renderer_opengl/gl_shader_gen.cpp:SampleTexture:222: Using Texture3 without enabling it
    [ 421.471626] Render.OpenGL video_core/renderer_opengl/gl_shader_gen.cpp:SampleTexture:222: Using Texture3 without enabling it
    [ 423.060198] Service.Y2R core/hle/service/y2r_u.cpp:SetTransferEndInterrupt:198: (STUBBED) called
    [ 424.351039] Service.Y2R core/hle/service/y2r_u.cpp:SetTransferEndInterrupt:198: (STUBBED) called
    [ 452.605746] Service.Y2R core/hle/service/y2r_u.cpp:SetTransferEndInterrupt:198: (STUBBED) called
    [ 452.620658] Service.Y2R core/hle/service/y2r_u.cpp:SetTransferEndInterrupt:198: (STUBBED) called
    setGeometry: Unable to set geometry 461x500+1210+208 on QWidgetWindow/‘ConfigureDialogWindow’. Resulting geometry: 461x655+1210+208 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 415x655, maximum size: 16777215x16777215).

Audio is tied to speed. So if the speed lags, the audio will too. As graphical bugs, I believe this is fixed with the reworked texture cache which is only available in Canary for now. It should also help a bit with the speed.