diff options
author | Aki <please@ignore.pl> | 2022-04-03 17:24:16 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-03 17:24:16 +0200 |
commit | cd57c84c5fe34c2ac548d6d119a9828a303923ef (patch) | |
tree | aac3545bcb95bf0d30b8b356c91adc492c07d3a6 /StarsEx/VideoDX9.cpp | |
parent | 150bd957db8eb19b1a07643317767ff5c3007f48 (diff) | |
download | starshatter-cd57c84c5fe34c2ac548d6d119a9828a303923ef.zip starshatter-cd57c84c5fe34c2ac548d6d119a9828a303923ef.tar.gz starshatter-cd57c84c5fe34c2ac548d6d119a9828a303923ef.tar.bz2 |
Removed video stats in Game
Diffstat (limited to 'StarsEx/VideoDX9.cpp')
-rw-r--r-- | StarsEx/VideoDX9.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/StarsEx/VideoDX9.cpp b/StarsEx/VideoDX9.cpp index cf7ed68..c4dd09f 100644 --- a/StarsEx/VideoDX9.cpp +++ b/StarsEx/VideoDX9.cpp @@ -1935,6 +1935,8 @@ VideoDX9::DrawPolys(int npolys, Poly* polys) if (SUCCEEDED(hr)) { stats.nverts += nverts; stats.npolys += num_tris; + stats.total_verts += nverts; + stats.total_polys += num_tris; result = true; } } @@ -2060,6 +2062,8 @@ VideoDX9::DrawScreenPolys(int npolys, Poly* polys, int blend) else { stats.nverts += num_verts; stats.npolys += num_tris; + stats.total_verts += num_verts; + stats.total_polys += num_tris; result = true; } } @@ -2496,6 +2500,8 @@ VideoDX9::DrawSegment(Segment* segment) } else { stats.nverts += num_verts; stats.npolys += num_tris; + stats.total_verts += num_verts; + stats.total_polys += num_tris; result = true; } } @@ -2739,6 +2745,8 @@ VideoDX9::DrawLines(int nlines, Vec3* points, Color c, int blend) if (SUCCEEDED(hr)) { stats.nverts += 2*nlines; stats.nlines += nlines; + stats.total_verts += 2*nlines; + stats.total_lines += nlines; result = true; } } @@ -2810,6 +2818,8 @@ VideoDX9::DrawScreenLines(int nlines, float* points, Color c, int blend) if (SUCCEEDED(hr)) { stats.nverts += 2*nlines; stats.nlines += nlines; + stats.total_verts += 2*nlines; + stats.total_lines += nlines; result = true; } } |