summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Statistics.cpp
AgeCommit message (Collapse)Author
2019-07-16VideoCommon: Remove unused MathUtil.h include from VideoCommon.hLioncash
This header doesn't actually make use of MathUtil.h within itself, so this can be removed. Many other source files used VideoCommon.h as an indirect include to include MathUtil.h, so these includes can also be adjusted. While we're at it, we can also migrate valid inclusions of VideoCommon.h into cpp files where it can feasibly be done to minimize propagating it via other headers.
2019-07-10VideoCommon/Statistics: Rename stats global to g_statsLioncash
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
2019-07-10VideoCommon/Statistics: Make all member functions non-staticLioncash
Rather than making Statistics' member functions operate on the global variable instance of itself, we can make these functions member functions and operate on a by-instance state, removing the direct dependency on the global variable itself. This also makes for less reading, as there's no need to repeat "stats." for all variable accesses.
2019-07-10VideoCommon/Statistics: Normalize statistic variable namesLioncash
Normalizes all variables related to statistics so that they follow our coding style. These are relatively low traffic areas, so this modification isn't too noisy.
2019-06-20VideoCommon/Statistics: Use std::array for projection valuesLioncash
Makes the members within the interface much nicer to look at, and also makes copying them over much nicer too.
2019-06-17VideoCommon/Statistics: Amend imgui includeLioncash
This is a library header, so it should be using '<' and '>' to delineate that.
2019-06-17VideoCommon/Statistics: Remove unused header inclusionsLioncash
These aren't used anywhere, so they can be removed.
2019-06-17VideoCommon/Statistics: Replace memset with assignment in ResetFrame()Lioncash
Same behavior, less code, and it doesn't require the type ThisFrame itself to actually be a trivially-copyable type.
2019-06-17VideoCommon/Statistics: Use ImGui::TextUnformatted() where applicableLioncash
ImGui::Text() assumes that the incoming text is intended to be formatted, but we don't actually use it to format anything. We can be explicit by using the relevant function. This also has a plus of not needing to go through the formatter itself, but the gains from that are probably minimal.
2019-06-17VideoCommon/Statistics: Replace DRAW_STAT macro with variadic lambdaLioncash
We don't need to use the preprocessor here. We can just use a variadic lambda function instead and forward the arguments to the formatting function.
2019-03-04VideoCommon: add EFB peek/poke statsTillmann Karras
2019-01-25Renderer: Use imgui for drawing debug text and OSDStenzek
2017-03-26VertexLoaderManager: Return debug strings by valueLioncash
This also renames AppendListToString to VertexLoadersToString.
2016-07-29VideoCommon: Make API_TYPE an enum classLioncash
Allows for forward declarations in most places, which prevents dumping unrelated VideoCommon.h contents directly into headers.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-17VideoCommon: Header cleanupLioncash
Also remedies places where the video backends and core rely on things being indirectly included.
2016-01-06VideoSW: Use more VideoCommondegasus
Now we require lots of empty functions, but this removes by far more duplicated code.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-02-25Formatting/Whitespace CleanupStevoisiak
Various fixes to formatting and whitespace
2015-01-18TexCache: also incude textures within the render target pooldegasus
2014-06-27Statistics: Reformat stats stringdegasus
2014-06-27VideoCommon: remove unused statsdegasus
2014-05-25Use strings instead of arbitrary buffers for video statisticsLioncash
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-04[VideoCommon] Eliminate the function Xchg in Statistics.cpp. std::swap does ↵Lioncash
the same thing.
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre