Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where start from?
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
Post Reply 


Messages In This Thread
Where start from? - GuilhermeGS2 - 11-25-2017, 03:44 PM
RE: Where start from? - [Unknown] - 11-26-2017 05:11 AM
RE: Where start from? - GuilhermeGS2 - 11-26-2017, 01:31 PM

Forum Jump: