Go Back   Project64 Forums > General Discussion > Site News

Reply
 
Thread Tools Display Modes
  #121  
Old 10th April 2013, 04:13 PM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,256
Default

Quote:
Originally Posted by PJ64 1.4/1.6/1.7 RSP Source
Code:
/************ Functions ***********/
DWORD AsciiToHex (char * HexValue) {
	DWORD Count, Finish, Value = 0;

	Finish = strlen(HexValue);
	if (Finish > 8 ) { Finish = 8; }

	for (Count = 0; Count < Finish; Count++){
		Value = (Value << 4);
		switch( HexValue[Count] ) {
		case '0': break;
		case '1': Value += 1; break;
		case '2': Value += 2; break;
		case '3': Value += 3; break;
		case '4': Value += 4; break;
		case '5': Value += 5; break;
		case '6': Value += 6; break;
		case '7': Value += 7; break;
		case '8': Value += 8; break;
		case '9': Value += 9; break;
		case 'A': Value += 10; break;
		case 'a': Value += 10; break;
		case 'B': Value += 11; break;
		case 'b': Value += 11; break;
		case 'C': Value += 12; break;
		case 'c': Value += 12; break;
		case 'D': Value += 13; break;
		case 'd': Value += 13; break;
		case 'E': Value += 14; break;
		case 'e': Value += 14; break;
		case 'F': Value += 15; break;
		case 'f': Value += 15; break;
		default: 
			Value = (Value >> 4);
			Count = Finish;
		}
	}
	return Value;
}
Even though this is not really relevant to RSP emulation, it was one of the very first things I ever touched about the zilmar RSP source.

It's that kind of thing, that led me to believe, maybe I should contribute to the rest of the project, if inefficiencies like this frequent throughout the rest of the emulator.

Or somebody interested should in the meantime.

Or do people not find benefits to an update of algorithms like that, such as:

Code:
const char digits[128] = {
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
     0,  1,  2,  3,  4,  5,  6,  7,  8,  9, -1, -1, -1, -1, -1, -1,
    -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
Code:
unsigned long int AsciiToHex(char *ASCII)
{
    register unsigned long int hexadecimal = 0x00000000;
    register unsigned int i = 0x0000;

    while (digits[ASCII[i]] != -1)
    {
        hexadecimal <<= 4;
        hexadecimal  |= digits[ASCII[i]];
    }
    return (hexadecimal);
}
Even without any knowledge of emulation it is possible for someone to contribute.
Reply With Quote
  #122  
Old 12th April 2013, 06:44 AM
BunieLuv's Avatar
BunieLuv BunieLuv is offline
Junior Member
 
Join Date: Apr 2013
Posts: 3
Default Well...?

So is this fake? Because it seems to be weird, and a lot more buggy than my old 1.7 Beta build.
Reply With Quote
  #123  
Old 12th April 2013, 12:28 PM
dsx_ dsx_ is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2010
Location: Australia
Posts: 1,105
Default

no its not fake, zilmar just doesn't give a shit about his userbase
Reply With Quote
  #124  
Old 12th April 2013, 12:44 PM
zilmar zilmar is offline
Core Team
Alpha Tester
Project Supporter
Administrator
 
Join Date: Jun 2005
Posts: 988
Default

Quote:
Originally Posted by dsx! View Post
no its not fake, zilmar just doesn't give a shit about his userbase
what makes you think I do not care about the userbase, you think I should not have released.
Reply With Quote
  #125  
Old 12th April 2013, 03:38 PM
BunieLuv's Avatar
BunieLuv BunieLuv is offline
Junior Member
 
Join Date: Apr 2013
Posts: 3
Default

Quote:
Originally Posted by zilmar View Post
what makes you think I do not care about the userbase, you think I should not have released.
I think a public release was long overdue, 1.6 Was more than a bit dated lol. it's just that i had a build of 1.7b50 or 55 or something like that and it felt better, and i can't figure out why. For example, override aspect ratio on "Ocarina of Time (U) 1.2" on 1.7 worked in 2D Areas but on 2.0 it streaches the 2D zones, making it unplayable widescreen.

EDIT: Just to throw it out there, ive also had an issue with gamepad settings not saving, do i need to run as Admin or something?
EDIT2: Or maybe theyre game specific now? Lol~
EDIT3: Maybe it's only streached in certain areas. Maybe im just crazy and its the same video plugin. Maybe you should ignore this post completely. ♥

Last edited by BunieLuv; 12th April 2013 at 03:47 PM.
Reply With Quote
  #126  
Old 12th April 2013, 03:58 PM
the_randomizer's Avatar
the_randomizer the_randomizer is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Sep 2008
Location: USA
Posts: 1,136
Default

Quote:
Originally Posted by dsx! View Post
no its not fake, zilmar just doesn't give a shit about his userbase
And you're basing that on what exactly? If anything, he actually cares, and how do I know that? Because he took time out of his own schedule to rewrite 90% of the code without the help of Jabo, he released the source code and publicly released 2.0, despite people's bitching about it not being perfect blah, blah, blah. Back your arguments up before making such baldfaced accusations.

Good day.
__________________
My rig:
CPU: Intel Core i7 4470 3.4 GHz to 3.9 GHz
Video card:: MSI nVidia GTX 970 4 GB GDDR5
OS: Windows 7 Professional 64-bit
RAM: 16 GB DDR3 SDRAM 10600
HDD: 2 x Western Digital 1 TB HDDs
Monitor: 23" Asus Full HD LED

Oh, and Snes9x > Zsnes in every way
Reply With Quote
  #127  
Old 12th April 2013, 07:29 PM
squall_leonhart's Avatar
squall_leonhart squall_leonhart is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 2,916
Default

Quote:
Originally Posted by BunieLuv View Post
I think a public release was long overdue, 1.6 Was more than a bit dated lol. it's just that i had a build of 1.7b50 or 55 or something like that and it felt better, and i can't figure out why. For example, override aspect ratio on "Ocarina of Time (U) 1.2" on 1.7 worked in 2D Areas but on 2.0 it streaches the 2D zones, making it unplayable widescreen.

EDIT: Just to throw it out there, ive also had an issue with gamepad settings not saving, do i need to run as Admin or something?
EDIT2: Or maybe theyre game specific now? Lol~
EDIT3: Maybe it's only streached in certain areas. Maybe im just crazy and its the same video plugin. Maybe you should ignore this post completely. ♥
Build Pj64 50 broke the Emulated Height/Width settings in Jabo's 1.7 plugins.

They default to 0 instead of -1(Default) resulting in stretched images and the likes.
__________________

CPU:Intel Xeon x5690 @ 4.2Ghz, Mainboard:Asus Rampage III Extreme, Memory:48GB Corsair Vengeance LP 1600
Video:EVGA Geforce GTX 1080 Founders Edition, NVidia Geforce GTX 1060 Founders Edition
Monitor:ROG PG279Q, BenQ BL2211, Sound:Creative XFI Titanium Fatal1ty Pro
SDD:Crucial MX300 275, Crucial MX300 525, Crucial MX300 1000
HDD:500GB Spinpoint F3, 1TB WD Black, 2TB WD Red, 1TB WD Black
Case:NZXT Phantom 820, PSU:Seasonic X-850, OS:Windows 7 SP1
Reply With Quote
  #128  
Old 13th April 2013, 01:52 AM
dsx_ dsx_ is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2010
Location: Australia
Posts: 1,105
Default

Quote:
Originally Posted by nintendo1889 View Post
And you're basing that on what exactly? If anything, he actually cares, and how do I know that? Because he took time out of his own schedule to rewrite 90% of the code without the help of Jabo, he released the source code and publicly released 2.0, despite people's bitching about it not being perfect blah, blah, blah. Back your arguments up before making such baldfaced accusations.

Good day.
Seems like 2.0 is worse than 1.6 and 1.7, based on a LOT of problems, and squall said the recompiler is broken, so
Reply With Quote
  #129  
Old 13th April 2013, 02:24 AM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,256
Default

Quote:
Originally Posted by dsx! View Post
squall said the recompiler is broken, so
...so .....

http://forum.pj64-emu.com/showthread.php?t=3577

Changed his mind about the recompiler start-up issue.




Quote:
Originally Posted by dsx! View Post
Seems like 2.0 is worse than 1.6 and 1.7, based on a LOT of problems
At the same time, you believe:

Quote:
Originally Posted by dsx! View Post
Quote:
Originally Posted by squall_leonhart View Post
if this is legit, good, means someone can fix the crap out of the mess you made of the recompiler.

though im going with april fools joke right now, since fobbing alpha quality emulators as release quality is a nasty joke
if its so bad, you fucking fix it
Mood swings.

Probably just some personality grudge.
Reply With Quote
  #130  
Old 13th April 2013, 02:32 AM
squall_leonhart's Avatar
squall_leonhart squall_leonhart is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 2,916
Default

didn't change my mind so much as i learned wtf was going on that is new to the 2.0 compiler (a hell of a lot more logging!)
__________________

CPU:Intel Xeon x5690 @ 4.2Ghz, Mainboard:Asus Rampage III Extreme, Memory:48GB Corsair Vengeance LP 1600
Video:EVGA Geforce GTX 1080 Founders Edition, NVidia Geforce GTX 1060 Founders Edition
Monitor:ROG PG279Q, BenQ BL2211, Sound:Creative XFI Titanium Fatal1ty Pro
SDD:Crucial MX300 275, Crucial MX300 525, Crucial MX300 1000
HDD:500GB Spinpoint F3, 1TB WD Black, 2TB WD Red, 1TB WD Black
Case:NZXT Phantom 820, PSU:Seasonic X-850, OS:Windows 7 SP1
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.