Dolphin, the GameCube and Wii emulator - Forums

Full Version: [UNOFFICIAL] Ishiiruka-Dolphin Custom Version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806
@ Reaver83: With those BIOS tweaks, you just turned your inefficient Phenom II X6 CPU into a slightly more efficient Phenom II X4 Smile

- The first version of AMD Turbo Core that was added to X6 (Thuban) CPUs was a gimmick that didn't work properly. Disabling that crap actually improves performance in many situations.
- The 6MB L3 cache in Phenom II CPUs is exclusive. In X4 models, each core gets 1.5 MB of L3 cache. In X6 CPUs, you have only 1 MB per core. X4 CPUs have slightly better single threaded performance because of this.

About your other tweaks:
* Setting the affinity to Core0 and Core1 is a BAD idea. You *lose* performance by doing this.
* Setting the priority to "High" is also a bad idea. "Above Normal" is recommended if you're running a modern Windows OS (Win 7, 8.1, 10). "High" priority does more harm than good.
* About the CPU clock speed: You don't need more than 3.5 GHz if you're using the latest development build or the latest unstable version of Ishiiruka. Drop the CPU speed down to 3.5 GHz and set the voltage back to default. Less heat, less noise and *much* lower power consumption (because Cool'N'Quiet doesn't work properly when overclocked).
* Why use insane AA settings when you can bump up the IR (to 4x, for example) and use a lower AA setting like 2xAA or Ishiiruka's downsampling filter? It looks so much better that way.
* Per-Pixel Lighting: You may want to turn that off to reduce stuttering.
* Try the latest Ishiiruka build and *enable* Fast EFB Access. Now turn on CPU->EFB Access as well. You can finally experience those (CPU-intensive) EFB effects without performance loss.
(02-18-2016, 08:37 AM)Hyllian Wrote: [ -> ]Thanks, I need to test more options from there then. Anyway, here's a second shader for Ishiiruka: crt-hyllian.glsl. For now, it needs to be put inside 'Scaling' folder as I don't know yet how to scale properly from the PosProcessing folder. And to see the crt effect, you need at least a 1080p display.
Tino could you merge CRT-Hylian and Super xBR shaders to Ishiiruka's repository? I think it's better than leaving them in forum where barely anyone will find them.
(02-21-2016, 12:26 PM)kirbypuff Wrote: [ -> ]@ Reaver83: With those BIOS tweaks, you just turned your inefficient Phenom II X6 CPU into a slightly more efficient Phenom II X4 Smile

- The first version of AMD Turbo Core that was added to X6 (Thuban) CPUs was a gimmick that didn't work properly. Disabling that crap actually improves performance in many situations.
- The 6MB L3 cache in Phenom II CPUs is exclusive. In X4 models, each core gets 1.5 MB of L3 cache. In X6 CPUs, you have only 1 MB per core. X4 CPUs have slightly better single threaded performance because of this.

About your other tweaks:
* Setting the affinity to Core0 and Core1 is a BAD idea. You *lose* performance by doing this.
* Setting the priority to "High" is also a bad idea. "Above Normal" is recommended if you're running a modern Windows OS (Win 7, 8.1, 10). "High" priority does more harm than good.
* About the CPU clock speed: You don't need more than 3.5 GHz if you're using the latest development build or the latest unstable version of Ishiiruka. Drop the CPU speed down to 3.5 GHz and set the voltage back to default. Less heat, less noise and *much* lower power consumption (because Cool'N'Quiet doesn't work properly when overclocked).
* Why use insane AA settings when you can bump up the IR (to 4x, for example) and use a lower AA setting like 2xAA or Ishiiruka's downsampling filter? It looks so much better that way.
* Per-Pixel Lighting: You may want to turn that off to reduce stuttering.
* Try the latest Ishiiruka build and *enable* Fast EFB Access. Now turn on CPU->EFB Access as well. You can finally experience those (CPU-intensive) EFB effects without performance loss.

With the latest version, you don't even need fast efb access, peek cache make it run almost at the same speed of fast efb access
(02-21-2016, 01:07 PM)Tino Wrote: [ -> ]With the latest version, you don't even need fast efb access, peek cache make it run almost at the same speed of fast efb access

That's only partially true, because 'Fast EFB Access' speeds up POKES as well.
EFB pokes are more demanding than peeks (even more so with EFB2RAM).
(02-21-2016, 10:56 AM)Tino Wrote: [ -> ]Updated the latest folder with a new version, added efb peek cache to dx11 courrtesy of @stenzek , por it to dx9 and dx12. games that do eavy efb access should work a lot better now.
replaced scaling with a shader and remove the options for the backend that does ot need it. testing is welcome. Enjoy.
Awesome, thanks! RG_SSAA is working great.

After a bunch of research and mucking around I think I figured out why the jinc2-sharper and corresponding lanczos2-sharper filters aren't performing the downsampling that I'm expecting.
I wanted something like GeDoSaTo's lanczos scaler, which as it turns out uses a different algorithm (4 taps instead of 2). The code for the lanczos4 shader is from libretro: https://github.com/libretro/common-shaders/blob/master/windowed/shaders/lanczos4.cg.
I know programming but don't know anything about graphics; how difficult would it be to implement libretro's lanczos4 shader as an Ishiiruka scaling filter?

Apologies to Hyllian; your shader works great for upscaling as I've discovered.
I haven't managed to figure out how to reproduce it, but randomly I find out some parts of shaders get broken (or locked) and no settings will change them.

I first experienced this many releases ago while playing around with AA settings (trying to force SGSSAA, and comparing it to built in AA options) and when playing with shaders AND AA.
What happens is some shaders stop accepting changes, so when you make changes it looks like nothing changes... until you restart Ishiiruka.

Since Hyllian's scaling shader was added, I've been very satisfied how it works when combined with 2xSGSSAA being forced via Nvidia Inspector (takes care of the overly strong blur from not being natively supported in Dolphin's rendering structure). This shader also has an options window (Graphics settings>Post-processing tab> "display shader options" button).
I've been using this option window as a way to tell when shaders get screwed up and I need to restart the game. When this happens, you see nothing in the window that opens (no Anti-Ringing slider, no tab for said slider, no textbox for description--just a small and empty window). I'll try to take a screenshot when it happens to me again.

And like I said, I've not been able to reproduce this on demand. I always end up noticing it after making a bunch of small changes at once (ex: single change in three shaders, texture scaling modes, hacks tab, wireframe on/off).

I've also noticed that the SSGI Samples option, in the SSGI shader, will only work if I'm changing the value by dragging the slider with the mouse and not the keyboard or mouse wheel. The slider itself would change, as would the value it displayed, but would not take effect unless by dragging the slider with the mouse (i.e. using arrow keys, page up/down, home/end or mouse wheel was nothing more than a visual change in the window and was not applying to the game/.ini)

And what is RG_SSAA.glsl? I know it's a scaling shader (the replacement for the now removed scaling option that used to be in the Enhancements tab), but I mean the "RG" portion of the name.
Rotated/random grid?
Well I attempted to port lanczos4 to Ishiiruka and, uh, got this:

[Image: smne01-1upjbg.png]

This is at 1x IR. I don't know what I did wrong lol.
I used the libretro implementation and the GeDoSaTo implementation as references. The shader source code is here: http://pastebin.com/eQBLEZ1g

Edit: After poring over the code and doing some experiments, I've come to the conclusion that the shader code is correct, but the coordinate systems that I'm using are wrong.
In fact, if I set stepxy = GetInvTargetResolution() / 4.0, I get pretty good results out of the shader, but I don't know if it's correct per se.
What exactly do GetInvTargetResolution() and GetInvResolution() return?
@ Tino:

* How about merging PR #3454 for another speed boost?
* Lens flare effects still work in Ishiiruka v565, but are broken (again!) in dev/master. Hmmm...
* Ishiiruka v565 still has that NSMB w1-1 bug with blue-tinted blocks @ 1xIR when using the OpenGL backend.
* It would be great if those slow texture scalers are ported as shaders to be processed by the GPU.

@Hyllian:

What we need is these shaders ported to Ishiiruka:

For 2D image enhancement/upscaling
----------------------------------------
* CRT-Caligari
* CRT-Hyllian
* CRT-Lottes
* 6xBR and 6xBR-v3.7c+CRT (v3.7c looks best when combined with a CRT shader)

- More CRT shaders, because DolphinFX is bulky and *super slow*. DolphinFX Scanlines + Barrel Distortion also doesn't produce a very good CRT effect.
- 6xBR, because 5xBR is not enough for high-res displays.

For downsampling (from GeDoSaTo/madVR/MPC-HC)
--------------------------------------------------------
* Lanczos3 & Lanczos4 (with adjustable deringing fllter)
* Bicubic (with adjustable sharpness from 0 to 100)
* Catmull-Rom AR
(02-21-2016, 02:29 PM)Kamikaze_Ice Wrote: [ -> ]I haven't managed to figure out how to reproduce it, but randomly I find out some parts of shaders get broken (or locked) and no settings will change them.

What happens is some shaders stop accepting changes, so when you make changes it looks like nothing changes... until you restart Ishiiruka.

It's a really weird bug that many users can reproduce (you're not the only one). Selecting / changing shaders doesn't work every time.
Sometimes it does, sometimes it doesn't. If you select the SAME SHADER again, it might work. You don't have to retart Ishiiruka. It usually works the 2nd or 3rd time.

Quote:What is RG_SSAA.glsl?

Rotated Grid SSAA shader (best used for downsampling from a very high IR (e.g. 6x, 12x) to your display res (usually 1080p).
(02-21-2016, 09:54 AM)Tino Wrote: [ -> ]can you give more detail on your problem because i just tested andit worked as spected on my system

I don't really know what meaningful detail I can give but basically the custom textures don't load no matter how I configure any Ishiiruka, 520, 554, 560, 565 or the stable version.

With ''Prefetch Custom Textures'' enabled and the texture packs in the right place,
I get ''Custom Textures loaded, 0.0 MB in 0.0 s''.

I also tried deleting every trace of Dolphin and only testing with a single version of Ishiiruka.

All my drivers are definitely up to date and I just did a clean install of Windows 10 a few weeks ago.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806