Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where start from?
11-25-2017, 03:44 PM (This post was last modified: 11-25-2017 03:45 PM by GuilhermeGS2.)
Post: #1
Where start from?
Hey guys! I recently learned the basics of progamming, and I wish to become a great programmer like you PPSSPP devs, I really appreciate your work guys. Well, I'm insterested in understanding how PPSSPP works, I do not know how PSP works and don't know much about C/C++, so maybe I will not understand everything, but I'd like to understand the basic to get more knowledge in programming, maybe I might even help with something soon when I get more experient.

I took a look arround the codes, and I got lost, too many variables that I don't know where they came from. So, where should I start? What's the main thing in the emulator? I think would be better if I had the codes of first PPSSPP version to undestand how it began, but I guess it's now available anymore (it has been 5 years).

Thank you for the great job guys. Smile

Phone: Galaxy J7 J700M @1.7GHz OC

PC: Intel Core i5 3470 3.2GHz/10GB DDR3 1333MHz/NVIDIA GTX 660 2GB GDDR5 192-bit/Windows 10 Pro x64
Find all posts by this user
Quote this message in a reply
11-26-2017, 05:11 AM
Post: #2
RE: Where start from?
The nice thing about GitHub is it actually keeps track of the code from the beginning. You can browse the first committed code here:

https://github.com/hrydgard/ppsspp/tree/...003507be50

On any file you can also select "Blame" to see where different parts come from, and the commits usually say why, for example:

https://github.com/hrydgard/ppsspp/blame...o.cpp#L831

Which shows a message explaining some of the code on that line:

https://github.com/hrydgard/ppsspp/commi...830bd47ad9

It's often useful to search all the code for a variable name and look at blame to better understand what it is, if it's not making sense.

There's several main components, but it depends on what you want to start understanding first. For example, graphics are a pretty major part of PPSSPP, you could look at GPUCommon.cpp. This code is run whenever the game sends a "list", which runs a list of "operations":

https://github.com/hrydgard/ppsspp/blob/...n.cpp#L841

The operations either do things (like drawing a triangle) or remember things (like which way the camera's pointing.) You can also see this in the GE debugger. This would be a good place to start.

-[Unknown]
Find all posts by this user
Quote this message in a reply
11-26-2017, 01:31 PM
Post: #3
RE: Where start from?
Thank you, I'll take a look later with more attention! Smile

Phone: Galaxy J7 J700M @1.7GHz OC

PC: Intel Core i5 3470 3.2GHz/10GB DDR3 1333MHz/NVIDIA GTX 660 2GB GDDR5 192-bit/Windows 10 Pro x64
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: