<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Himanshu Nag on Medium]]></title>
        <description><![CDATA[Stories by Himanshu Nag on Medium]]></description>
        <link>https://medium.com/@himanshu-nag?source=rss-4834f7a2adc2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Um7bKiRqr3hm9-dCepvNZA.png</url>
            <title>Stories by Himanshu Nag on Medium</title>
            <link>https://medium.com/@himanshu-nag?source=rss-4834f7a2adc2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:10:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@himanshu-nag/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Future of Game Engines]]></title>
            <link>https://himanshu-nag.medium.com/future-of-game-engines-5b86e666190?source=rss-4834f7a2adc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b86e666190</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[game-engine]]></category>
            <category><![CDATA[unreal]]></category>
            <category><![CDATA[ray-tracing]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Himanshu Nag]]></dc:creator>
            <pubDate>Wed, 16 Jun 2021 07:38:01 GMT</pubDate>
            <atom:updated>2021-06-16T07:38:01.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Unreal Engine" src="https://cdn-images-1.medium.com/max/1024/1*URv1TXiMAVuC6bd2BPCXiw.png" /></figure><h3>Battle for the title of “Best Game Engine”</h3><p>Game Engines companies have never been competitive with each other in the past, the reason being the tag “Proprietary”. Game Engines could showcase their feature and efficiency just for the sake of promoting their games. This non-competitive environment continued until Unity made its presence in the market. Back in the 2000s, Unreal was the only AAA Game engine available for solo developers, but after the release of Unity, Unreal became aware that they no longer hold the monopoly. Unity introduced features that were delighting to developers. They made deals with companies, supported indie developers, and developed easy-to-use &amp; friendly components for their game engine, which gave them TRP and build a community stronger than Unreal. 10 years later, Unity is now standing side by side with Unreal grabbing titles of the best game engine of the year.</p><h3>Graphics vs Optimization</h3><p>Unity has been focusing on its graphics with new features like <strong>HDRP, CPU &amp; GPU Lightmapper, Virtual Texturing, </strong>and much more, but being a small-scaled developed framework, it is hard to keep up when your competitor is controlling over AAA title deals an already had a presence since 1995. Being funded by a billionaire company, Unreal grew a team of geniuses, which helped them to develop the most optimized and advanced virtualized micro polygon geometry, <strong>“Nanite”</strong>. It will take Unity another 5–10 years to achieve an alternate to Nanite. Unity has now been working on promoting efficient and optimized multi-threaded Data-Oriented Technology, “<strong>DOTS”</strong>, and focusing more on non-game applications. Nevertheless, Unity will come back with a photorealism graphic update in future updates.</p><h3>Working with Business Industry</h3><p>Unity has been working in different domains for the past couple of years to expand its engine for <strong>simulation and AI</strong>, whereas Unreal is more focused on <strong>films and animation</strong>. Unreal claims to be the most powerful and advanced game engine which can be the reason to enroll their involvement in the CGI industry. With Unity’s latest updates, they shared their story collaborating with <strong>BMW</strong>, and on the other hand, Unreal showcased their work in the new <strong>Star Wars</strong> movie. They both are focused on recreating their name and fame as an <strong>Engine</strong> and not as <strong>Game Engine</strong>.</p><h3>Titles and Platforms</h3><p>It’s not new for <strong>Unreal</strong> Engine to be the backbone of AAA titles. Titles like <strong>Fortnite</strong>, <strong>S.T.A.L.K.E.R</strong>, <strong>Star Wars: Jedi</strong>, <strong>Tom Clancy</strong>, <strong>NBA, </strong>etc<strong>, </strong>are some of the best-selling games, whereas <strong>Unity</strong> has always been there for indie developers. Titles like <strong>In the valley of Gods</strong>, <strong>Monument Valley</strong>, <strong>Firewatch</strong> are some of the most loved games by gamers. Currently, both the engines are working on sponsoring solo developers to advertise their engines.</p><h3>Next-Gen Engine</h3><p>Unity and Unreal, both are looking forward to developing better graphics and more optimized components. Focusing on console platform delivery is also their concern. Working closely with 3D modeling software companies like Autodesk to build a pipeline for next-gen modeling is one of the priorities as Autodesk has announced new patterns in contrast to Ray-Tracing.</p><p>Battle continuous among <strong>Unity</strong> and <strong>Unreal</strong>, but their recent fast pace growth is now becoming concerning to proprietary engines like frostbite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b86e666190" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coroutines in Unity]]></title>
            <link>https://himanshu-nag.medium.com/coroutines-in-unity-f38a093c7bd8?source=rss-4834f7a2adc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f38a093c7bd8</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coroutine]]></category>
            <category><![CDATA[game-developemnt]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[csharp]]></category>
            <dc:creator><![CDATA[Himanshu Nag]]></dc:creator>
            <pubDate>Sat, 22 May 2021 13:26:47 GMT</pubDate>
            <atom:updated>2021-05-22T13:26:47.411Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4LCwt3AWeJ2jaGSfhcVNA.jpeg" /></figure><h3>Introduction</h3><p>A Coroutine is a function that is capable of waiting and timing its process and pausing it entirely. Coroutines work with a special yield statement that returns the code execution out of the function, then when the functions continue, executions begin again right from where it left off.</p><h3>Getting Started</h3><h4>Declare Coroutine</h4><p>Coroutines in C# can be defined by using the <strong>IEnumerator </strong>keyword followed by the name of the coroutine.</p><p>Member variable can be declared by using <strong>member-type</strong> followed by a variable name.</p><p>Coroutine returns type with the yield statement. For example <strong>yield return null;</strong></p><p>//Defining Coroutine</p><p>public IEnumerator MyCoroutine()</p><p>{</p><p>yield return null;</p><p>}</p><h4>Calling Coroutine</h4><p>Coroutines can be called using <strong>StartCoroutine(Coroutine)</strong>.</p><p>StartCoroutine(MyCoroutine())</p><h4>Stop Coroutine</h4><p>Coroutines can be called using <strong>StopCoroutine(Coroutine) </strong>whereas <strong>StopAllCoroutines() </strong>can be used to stop all coroutines running at that instance.</p><p>//Stop Coroutine</p><p>StopCoroutine(MyCoroutine());</p><p>//Stop all Coroutine</p><p>StartAllCoroutines();</p><h3>Understanding Coroutines</h3><p>Coroutines are helpful while developing a game, but using coroutines in a game is not considered efficient if not stopped when the task is completed.</p><p>Coroutine methods can be executed piece by piece over time, but all processes are still done by a single main Thread. If a Coroutine attempts to execute a time-consuming operation, the whole application freezes for the time being.</p><h3>Example Program</h3><p>using UnityEngine;</p><p>using System.Collections;</p><p>public class CoroutineHandler : MonoBehaviour</p><p>{</p><p>public void Start()</p><p>{</p><p>StartCoroutine(MyCoroutine(&quot;Jon&quot;));</p><p>}</p><p>IEnumerator MyCoroutine(string name)</p><p>{</p><p>print(name);</p><p>yield return new WaitForSeconds(5f);</p><p>print(name + &quot;Watson&quot;);</p><p>}</p><p>}</p><h3>Output</h3><p>Jon</p><p>*waits for 5 sec*</p><p>Jon Watson</p><h3>Conclusion</h3><p>Coroutines provide a lot of features that can be very helpful while developing games but should be used properly to save memory leaks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f38a093c7bd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delegates In Unity]]></title>
            <link>https://himanshu-nag.medium.com/delegates-in-unity-fbdb0e020ec7?source=rss-4834f7a2adc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbdb0e020ec7</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[delegate]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Himanshu Nag]]></dc:creator>
            <pubDate>Sat, 22 May 2021 12:29:25 GMT</pubDate>
            <atom:updated>2021-05-22T12:52:12.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LT4jjHQROZ36nHI8_UGow.jpeg" /></figure><h3>Introduction</h3><p>Delegate is a container for a function that can be used as a variable. Delegate helps in making code modular and efficient. It works like a subscription-based service, where the passed method gets called when subscribed and vice versa.</p><p><strong>There are two types of Delegates</strong></p><p><strong><em>Single-Cast Delegate</em></strong><em> — </em>can hold single method.</p><p><strong><em>Multi-Cast Delegate</em></strong><em> — </em>can hold multiple methods.</p><h3>Getting Started</h3><h4>Declare Delegate</h4><p>Delegates in C# can be defined by using <strong>delegate </strong>keyword followed by return-type, name, and parameter.</p><p>Member variable can be declared by using <strong>member-type</strong> followed by a variable name.</p><p>//Defining Delegate</p><p>public delegate void MyDelegate();</p><p>public static MyDelegate myDelegate;</p><h4>Using Single-Cast Delegate</h4><p>Declared methods can be assigned to Single-Cast Delegate using <strong>“=”</strong>.</p><p>//Subscribing to Single-Cast delegate</p><p>myDelegate = myMethod;</p><h4>Using Multi-Cast Delegate</h4><p>Declared methods can be assigned to Single-Cast Delegate using <strong>“+=”</strong>.</p><p>//Subscribing to Multi-Cast delegate</p><p>myDelegate += myMethodOne;</p><p>myDelegate += myMethodTwo;</p><h4><strong>De-Assign method from delegate</strong></h4><p>To De-Assign methods from delegate, <strong>“-=”</strong> is used.</p><p>//UnSubscribing to Delegate</p><p>myDelegate -= myMethod;</p><p>myDelegate -=myMethodOne</p><p>myDelegate -=myMethodTwo</p><h4><strong>Calling Delegate</strong></h4><p>Delegates are called like methods.</p><p>//Delegates without parameters</p><p>myDelegate()</p><p>//Delegates with integer as parameters</p><p>myDelegate(20)</p><h3>Understanding Delegates</h3><p>Delegates are used to perform tasks assigned to different methods with one call. The feasibility of subscribing and un-subscribing methods helps programmers to develop efficient and easy-to-expandable code structures.</p><h3>Delegates vs Events</h3><p>Events and delegates, both works on subscription-based service, but Delegates are independent of Events, whereas Events are dependent on Delegates and cannot be created without Delegates. Delegates are able to pass parameters, whereas Events are incapable of passing parameters.</p><h3>Example Program</h3><p>using UnityEngine;</p><p>using System.Collections;</p><p>public class DelegateHandler : MonoBehaviour</p><p>{</p><p>public delegate void MyDelegate (string m_name);</p><p>public static MyDelegate myDelegate;</p><p>public void Start()</p><p>{</p><p>myDelegate = PrintName;</p><p>myDelegate(&quot;John&quot;);</p><p>}</p><p>public void PrintName(string name)</p><p>{</p><p>print(name);</p><p>}</p><p>}</p><h4>Output</h4><p>John</p><h3>Conclusion</h3><p>Delegates are efficient, and helps to create modular, expandable, and re-usable code, but should be un-subscribed when required or may lead to memory leaks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbdb0e020ec7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>