Commit 9e343b6
committed
Allow stereo rendering patches to run without DLL for debugging
Due to RenderDoc and Nsight Graphics not really being compatible with large .DLL projects like BetterVR, you normally aren't able to use a graphical debugger to debug issues like shadows for example.
With these changes, you can make a lite version of the mod that does all the stereo rendering things, but without the DLL, allowing a developer to still use RenderDoc to debug certain issues that just simply are way easier when you can see the intermediary drawing results of the game. To use this lite version, you need to copy these files into a separate graphic pack (or symlink them):
- patch_PatchUtils.asm
- patch_RND_Logging.asm
- patch_RND_StereoRendering.asm
- patch_RND_StereoRendering_ActorJobs.asm
- patch_RND_StereoRendering_CameraAndProjection.asm
- patch_STUB_StereoRenderingDebugging.asm
- and of course a rules.txt file, but you should probably modify it.
Then, if you switch the "useStubHooks" value from .int 0 to .int 1, you'll be able to go in-game with the appropriate performance impact that VR will have.
The goal definitely isn't to make ALL patches run without VR, just enough that I can debug stereo rendering issues or issues related to the camera modifications and projection matrices used for VR.1 parent 18ba775 commit 9e343b6
File tree
2 files changed
+133
-27
lines changed- resources/BreathOfTheWild_BetterVR
2 files changed
+133
-27
lines changedLines changed: 100 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
496 | 492 | | |
497 | 493 | | |
498 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
499 | 518 | | |
500 | 519 | | |
501 | 520 | | |
| |||
510 | 529 | | |
511 | 530 | | |
512 | 531 | | |
513 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
514 | 543 | | |
515 | 544 | | |
516 | 545 | | |
| |||
605 | 634 | | |
606 | 635 | | |
607 | 636 | | |
608 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
609 | 648 | | |
610 | 649 | | |
611 | 650 | | |
| |||
648 | 687 | | |
649 | 688 | | |
650 | 689 | | |
651 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
652 | 701 | | |
653 | 702 | | |
654 | 703 | | |
| |||
694 | 743 | | |
695 | 744 | | |
696 | 745 | | |
697 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
698 | 757 | | |
699 | 758 | | |
700 | 759 | | |
| |||
739 | 798 | | |
740 | 799 | | |
741 | 800 | | |
742 | | - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
743 | 812 | | |
744 | 813 | | |
745 | 814 | | |
| |||
784 | 853 | | |
785 | 854 | | |
786 | 855 | | |
787 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
788 | 867 | | |
789 | 868 | | |
790 | 869 | | |
| |||
829 | 908 | | |
830 | 909 | | |
831 | 910 | | |
832 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
833 | 922 | | |
834 | 923 | | |
835 | 924 | | |
| |||
Lines changed: 33 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
19 | 35 | | |
20 | 36 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 37 | + | |
| 38 | + | |
25 | 39 | | |
26 | 40 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 41 | + | |
| 42 | + | |
31 | 43 | | |
32 | 44 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
43 | | - | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
52 | 66 | | |
| 67 | + | |
53 | 68 | | |
| 69 | + | |
54 | 70 | | |
| 71 | + | |
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
| |||
0 commit comments