misyltoad / d9vk

A Direct3D9 to Vulkan layer using the DXVK backend. [Upstreamed to DXVK]
https://github.com/doitsujin/dxvk
zlib License
838 stars 42 forks source link

In game custom video playback reading issues #447

Closed SKULLWORTH closed 5 years ago

SKULLWORTH commented 5 years ago

Hopefully i can explain as much as i can in this post. The game is The Sims 2, disk version.

The GPU is Nvidia 1070 GTX TI


Overall the game runs with no problem with d9VK, however the issue begins when you use in game TV. Just to be brief if you haven't played sims 2 before, there is a custom option to add your own videos to play on the TV. The only format the game reads for custom videos is AVI. The directory would be like this C:\Documents\EA Games\The Sims 2\Movies\Broadcast\TvSBN.


From what i've gathered, the videos built into the game run on a unique codec created by Electronic arts. These run properly with no interference from d9vk.

Screen_Shot_2019-11-10_at_7 38 01_AM

Here is a typical custom video format.

321312


In the past, these videos used to work on my older Gpu which was a 1gb 6800 ATI radeon HD. For about a week i had been experimenting with the codecs, and i can confirm this is not a codec issue. Simply put, d9VK which doesn't fully acknowledge AVI videos.


This is what the videos look like with d9vk installed. Although there's a black screen, i could still hear the video. So the video was playing but only from an audio perspective.

snapshot_6aca6692_8ad43f5c


These pics were taken without d9vk, as you can see the custom Avi videos work.

snapshot_6aca6692_4ad44ecd snapshot_6aca6692_6ad44efa


Here is the d3d9 report.

Sims2EP9_d3d9.log

misyltoad commented 5 years ago

I'll need an apitrace to debug this -- preferably one recorded where it works, and one where it doesn't (ie. w and w/o d9vk)

A copy of a working video would also be nice.

@tannisroot can probably help you or provide these.

misyltoad commented 5 years ago

When you say without d9vk do you mean native D3D or WineD3D?

misyltoad commented 5 years ago

Please try with this build. It probably won't render the videos correctly but it should hopefully render something (albeit very green)

Please provide a picture if anything changes.

d3d9.zip

SKULLWORTH commented 5 years ago

I'll need an apitrace to debug this -- preferably one recorded where it works, and one where it doesn't (ie. w and w/o d9vk)

A copy of a working video would also be nice.

@tannisroot can probably help you or provide these.

Just out of curiosity would that be the dxvk-cache? Either way, i'll speak with Tannis have those sent to you shortly.


When you say without d9vk do you mean native D3D or WineD3D?

Wine3D code name - Loli-Hop.


Please try with this build. It probably won't render the videos correctly but it should hopefully render something (albeit very green)

Please provide a picture if anything changes.

d3d9.zip

Thank you i will report back shortly.

misyltoad commented 5 years ago

Just out of curiosity would that be the dxvk-cache

no

Wine3D code name - Loli-Hop.

I think you're getting confused with the different things here.

nelsonjchen commented 5 years ago

I managed to trace it. There may be lots of pink flashing but I'm able to get a trace of the "gameplay" where the video from the reporter is being played.

https://drive.google.com/open?id=1RrDlbMVaGssmQHzYaWoHhTGE34MB9vhG