MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / UpdateStatsPresent

Method UpdateStatsPresent

Source/DX9VideoProcessor.cpp:2944–2981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2942}
2943
2944void CDX9VideoProcessor::UpdateStatsPresent()
2945{
2946 if (m_d3dpp.SwapEffect) {
2947 m_strStatsPresent.assign(L"\nPresentation : ");
2948 switch (m_d3dpp.SwapEffect) {
2949 case D3DSWAPEFFECT_DISCARD:
2950 m_strStatsPresent.append(L"Discard");
2951 break;
2952 case D3DSWAPEFFECT_FLIP:
2953 m_strStatsPresent.append(L"Flip");
2954 break;
2955 case D3DSWAPEFFECT_COPY:
2956 m_strStatsPresent.append(L"Copy");
2957 break;
2958 case D3DSWAPEFFECT_OVERLAY:
2959 m_strStatsPresent.append(L"Overlay");
2960 break;
2961 case D3DSWAPEFFECT_FLIPEX:
2962 m_strStatsPresent.append(L"FlipEx");
2963 break;
2964 }
2965 m_strStatsPresent.append(L", ");
2966 m_strStatsPresent.append(D3DFormatToString(m_d3dpp.BackBufferFormat));
2967
2968 if (m_bVBlankBeforePresent || m_bAdjustPresentTime) {
2969 m_strStatsPresent.append(L"\nFrame sync :");
2970 if (m_bVBlankBeforePresent) {
2971 m_strStatsPresent.append(L" wait VBlank");
2972 }
2973 if (m_bAdjustPresentTime) {
2974 if (m_strStatsPresent.back() != ':') {
2975 m_strStatsPresent += ',';
2976 }
2977 m_strStatsPresent.append(L" adjust present time");
2978 }
2979 }
2980 }
2981}
2982
2983void CDX9VideoProcessor::UpdateStatsStatic()
2984{

Callers

nothing calls this directly

Calls 1

D3DFormatToStringFunction · 0.85

Tested by

no test coverage detected