Пример #1
0
 internal static void IC_Enqueue(MyIssuedQuery q)
 {
     if (m_currentFrame == null)
     {
         return;
     }
     m_currentFrame.m_issued.Enqueue(q);
 }
Пример #2
0
        internal void EndProfilingBlock()
        {
            var q = MyQueryFactory.CreateTimestampQuery();

            End(q);
            var info = new MyIssuedQuery(q, "", MyIssuedQueryEnum.BlockEnd);

            if (m_deferred)
            {
                ProfilingQueries.m_issued.Enqueue(info);
            }
            else
            {
                MyGpuProfiler.IC_Enqueue(info);
            }
        }
Пример #3
0
        internal void BeginProfilingBlock(string tag)
        {
            var q = MyQueryFactory.CreateTimestampQuery();

            End(q);
            var info = new MyIssuedQuery(q, tag, MyIssuedQueryEnum.BlockStart);

            if (m_deferred)
            {
                ProfilingQueries.m_issued.Enqueue(info);
            }
            else
            {
                MyGpuProfiler.IC_Enqueue(info);
            }
        }
Пример #4
0
        internal void EndProfilingBlock()
        {
            var q = MyQueryFactory.CreateTimestampQuery();

            End(q);
            var info = new MyIssuedQuery(q, "", MyIssuedQueryEnum.BlockEnd);

            if (m_deferred)
            {
                ProfilingQueries.m_issued.Enqueue(info);
            }
            else
            {
                MyGpuProfiler.IC_Enqueue(info);
            }
            // this tag will be visible in NSight because of this call:
            m_annotation.EndEvent();
        }
Пример #5
0
        /// <summary>
        /// BeginProfilingBlock that works even when PerformanceProfilingSymbol is false
        /// </summary>
        internal void BeginProfilingBlockAlways(string tag)
        {
            var q = MyQueryFactory.CreateTimestampQuery();

            End(q);
            var info = new MyIssuedQuery(q, tag, MyIssuedQueryEnum.BlockStart);

            if (m_deferred)
            {
                ProfilingQueries.m_issued.Enqueue(info);
            }
            else
            {
                MyGpuProfiler.IC_Enqueue(info);
            }
            // this tag will be visible in NSight because of this call:
            m_annotation.BeginEvent(tag);
        }
Пример #6
0
 internal static void IC_Enqueue(MyIssuedQuery q)
 {
     m_currentFrame.m_issued.Enqueue(q);
 }
Пример #7
0
 internal static void IC_Enqueue(MyIssuedQuery q)
 {
     m_currentFrame.m_issued.Enqueue(q);
 }
Пример #8
0
        internal void EndProfilingBlock()
        {
            var q = MyQueryFactory.CreateTimestampQuery();
            End(q);
            var info = new MyIssuedQuery(q, "", MyIssuedQueryEnum.BlockEnd);

            if (m_deferred)
            {
                ProfilingQueries.m_issued.Enqueue(info);
            }
            else
            {
                MyGpuProfiler.IC_Enqueue(info);
            }
        }
Пример #9
0
        internal void BeginProfilingBlock(string tag)
        {
            var q = MyQueryFactory.CreateTimestampQuery();
            End(q);
            var info = new MyIssuedQuery(q, tag, MyIssuedQueryEnum.BlockStart);

            if (m_deferred)
            {
                ProfilingQueries.m_issued.Enqueue(info);
            }
            else
            {
                MyGpuProfiler.IC_Enqueue(info);
            }
        }
 internal static void IC_Enqueue(MyIssuedQuery q)
 {
     if (m_currentFrame == null)
         return;
     m_currentFrame.m_issued.Enqueue(q);
 }