• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
1 2 3 4 5 … 117 Next »

Matrix Interpolation
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Matrix Interpolation
09-20-2022, 07:06 AM
#1
amino
Unregistered
 
Is there a limitation in Dolphin's rendering that would prevent it from using matrix interpolation to increase framerates in games similar to how Ship of Harkinian (an OOT PC Port) implements it?

Implementation here: https://github.com/HarbourMasters/Shipwr...lation.cpp
Reply
09-21-2022, 10:58 AM (This post was last modified: 09-21-2022, 11:01 AM by iwubcode.)
#2
iwubcode Offline
Member
***
Posts: 233
Threads: 2
Joined: Oct 2019
It is something I'm very interested in but is a bit farther down on my personal to-do list. I won't guarantee I'll ever get to it but it would be very neat!

I would think this would require at least three things:

* You have to figure out *what* to interpolate. If you want to interpolate something, you'll have to look at that same thing multiple times to know how it changes. In emulators we don't have the luxury of knowing something is a character or the ground. So detecting this is problem one. My current solution would be a graphics mod which means this would be game specific.
* You have to figure out the start and end interpolation values. I am not sure how other solutions work, I'd imagine you would need some sort of run ahead in the emulation?
* You have to do the interpolation logic (similar to the code you posted).

Most of this isn't available in Dolphin today, so while it's not an impossible task, it isn't an easy problem to solve.
Find
Reply
09-21-2022, 12:29 PM
#3
One More Try Offline
Posting Freak
*****
Posts: 897
Threads: 24
Joined: Dec 2014
(09-21-2022, 10:58 AM)iwubcode Wrote: * You have to figure out the start and end interpolation values.  I am not sure how other solutions work, I'd imagine you would need some sort of run ahead in the emulation?

 I assume there would be a 1 or 2 frame lag to delay the current frame information and interpolate it with the past frame. Show the interp then show the current frame.
Find
Reply
11-24-2023, 01:52 AM
#4
3DJ Offline
Junior Member
**
Posts: 2
Threads: 0
Joined: Sep 2023
(09-21-2022, 10:58 AM)iwubcode Wrote: It is something I'm very interested in but is a bit farther down on my personal to-do list.  I won't guarantee I'll ever get to it but it would be very neat!

I would think this would require at least three things:

* You have to figure out *what* to interpolate.  If you want to interpolate something, you'll have to look at that same thing multiple times to know how it changes.  In emulators we don't have the luxury of knowing something is a character or the ground.  So detecting this is problem one.  My current solution would be a graphics mod which means this would be game specific.
* You have to figure out the start and end interpolation values.  I am not sure how other solutions work, I'd imagine you would need some sort of run ahead in the emulation?
* You have to do the interpolation logic (similar to the code you posted).

Most of this isn't available in Dolphin today, so while it's not an impossible task, it isn't an easy problem to solve.

Would this help with problem one? https://github.com/JakobPCoder/ReshadeMotionEstimation
It seems to be a decent attempt at detecting the direction in which pixels are moving https://youtu.be/LlNPJUCcSJE
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma