You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Do you agree with me that value is never written otherwise. So it is a constant to 0. As far as I can see, it only used here
pcsx2/x86/newVif_Dynarec.cpp:224: if(UnpkNoOfIterations == 0)
pcsx2/x86/newVif_Dynarec.cpp-225- ShiftDisplacementWindow( srcIndirect, edx ); //Don't need to do this otherwise as we arent reading the source.
The reason will be displayed to describe this comment to others. Learn more.
Nargh, I wish I could remember why I did any of that now.. I'm sure there was a reason I did that, or did I get myself confused with UnpkLoopIteration.
It could be we either don't need it at all or we always need it. I honestly can't remember :/ I know I was trying to reduce the number of memory reads/moves happening
The reason will be displayed to describe this comment to others. Learn more.
@refractionpcsx2 You could comment that you plan to add comments later. It creates that little nag that will make you do it some day. This kind of code really requires full documentation. Chances are that you find a few more bugs this way, as well.
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you agree with me that value is never written otherwise. So it is a constant to 0. As far as I can see, it only used here
I'm not sure why we need it.
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nargh, I wish I could remember why I did any of that now.. I'm sure there was a reason I did that, or did I get myself confused with UnpkLoopIteration.
It could be we either don't need it at all or we always need it. I honestly can't remember :/ I know I was trying to reduce the number of memory reads/moves happening
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok. Too bad. Feel free to improve the situation if you remember.
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it comes back to me I will, right now it works, so that's good enough :P
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is why commenting your code decently is a good practice ;)
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I know, I'm just way too lazy :P
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@refractionpcsx2 You could comment that you plan to add comments later. It creates that little nag that will make you do it some day. This kind of code really requires full documentation. Chances are that you find a few more bugs this way, as well.
471f33c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I'll do that tonight