<?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 Soumya Ranjan Sahoo on Medium]]></title>
        <description><![CDATA[Stories by Soumya Ranjan Sahoo on Medium]]></description>
        <link>https://medium.com/@soumyaripan?source=rss-36de213f9227------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZIdbdMDbeXCvaiwh3nAYDQ.jpeg</url>
            <title>Stories by Soumya Ranjan Sahoo on Medium</title>
            <link>https://medium.com/@soumyaripan?source=rss-36de213f9227------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:56:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soumyaripan/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[I Built a Screen Time App in 4Hours using AI. It Showed Me I Was Wrong About Myself.]]></title>
            <link>https://medium.com/@soumyaripan/i-built-a-screen-time-app-in-4hours-using-ai-it-showed-me-i-was-wrong-about-myself-1421f006b848?source=rss-36de213f9227------2</link>
            <guid isPermaLink="false">https://medium.com/p/1421f006b848</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[build-in-public]]></category>
            <dc:creator><![CDATA[Soumya Ranjan Sahoo]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 12:52:03 GMT</pubDate>
            <atom:updated>2025-12-09T12:52:03.567Z</atom:updated>
            <content:encoded><![CDATA[<p>I spend too much time on X and YouTube. I knew this. Vaguely. The way you know you should sleep more but never actually check how little you’re getting.</p><p>So I built an app to track it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*_8ZitBfV_I6DvPq42kqLpQ.jpeg" /></figure><h3>The Design Choice That Made It Work</h3><p>Most screen time apps bury data in dashboards. You have to go looking for it. Nobody does that mid-scroll, brain off, thumb on autopilot.</p><p>So I put my stats in the notification bar.</p><p>Now every time I swipe down to check a message, my screen time is right there. First thing I see. “X: 1h 23m.” Can’t avoid it.</p><p>The rings change color as I approach my limit. Green, yellow, orange, red. I don’t need to read numbers. I just see red and think “maybe not.”</p><p>It’s a passive nudge. No alarms. No blocking. Just constant, gentle awareness.</p><p>That changed how I use my phone. Not dramatically. But I notice myself hesitating now. Closing apps earlier. Catching myself before the rabbit hole starts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T9YHIEHn2z6NiD_2DASN9A.jpeg" /></figure><h3>Then Something Unexpected Happened</h3><p>I went on holiday last week.</p><p>When I checked my stats, X and YouTube had almost disappeared. My top apps were Chrome, Google Keep, LinkedIn. I’d been researching, taking notes, jotting down ideas.</p><p>I had no idea this was happening until the data showed me.</p><h3>The Insight</h3><p>I thought X and YouTube were my problem.</p><p>They’re not. Not exactly.</p><p>The problem is how I unwind from work. During busy weeks, my brain is fried. It reaches for easy, infinite content. Mental junk food.</p><p>On holiday, my brain had energy. I didn’t need the junk. I actually wanted to think.</p><p>The tool I built to fix a problem showed me I’d misunderstood the problem entirely.</p><h3>Why I’m Sharing This</h3><p>Generic apps give generic insights. Something built for my patterns revealed my blind spots.</p><p>Half a day to build. One week to learn something I’d missed for years.</p><p>What would you build to understand yourself better?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1421f006b848" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Useful Plugin And Tools For Unity]]></title>
            <link>https://medium.com/@soumyaripan/useful-plugin-and-tools-for-unity-459acdaf7306?source=rss-36de213f9227------2</link>
            <guid isPermaLink="false">https://medium.com/p/459acdaf7306</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[unity3d-game-development]]></category>
            <category><![CDATA[unity-asset-store]]></category>
            <dc:creator><![CDATA[Soumya Ranjan Sahoo]]></dc:creator>
            <pubDate>Sun, 05 Jun 2022 13:10:38 GMT</pubDate>
            <atom:updated>2022-06-05T13:10:38.277Z</atom:updated>
            <content:encoded><![CDATA[<p>Here are some of the useful unity plugins, I have compiled together that can help your game development process.</p><h4>Odin Inspector</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*d72Wcs-6UTAjB6X1EkKWgw.png" /></figure><ol><li>Better inspector management, creating editor tools, helps in some serialization scenarios.</li><li>Very capable of creating designer friendly custom UIs in inspector and editor tools.</li><li>Lots of customization and custom window development features.</li><li>Its a must have for unity development.</li></ol><h4>Unity Atoms</h4><p>A life saver for working with bigger projects. We have a huge project with event based architecture where unity atoms provided a modular event and data setup.</p><ol><li>To create event based systems and much more.</li><li>Its built on top of a scriptable architecture and helps a lot to manage your project better with creating portable events, variables etc.</li><li>Checkout their website for all the features.<br><a href="https://unity-atoms.github.io/unity-atoms/introduction/overview">https://unity-atoms.github.io/unity-atoms/introduction/overview</a></li></ol><h4>Animancer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FP5rCHVx031m3VjSHDUyhw.png" /></figure><p>Good option, if you want to control animations with code and not have to use the Mechanim.<br>For bigger projects with lots of animations and complex setups mechanim might become overwhelming.</p><ol><li>Animancer is a easy to use tool which directly plays animations through code and you can directly reference the animation clips to your code.</li><li>Its built on top of the unity Playables and uses the Animator component.</li><li>Read more about : <a href="https://kybernetik.com.au/animancer/">https://kybernetik.com.au/animancer/</a></li></ol><h4>Final IK</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*shdf0x7uySRfH6SvLIkivw.jpeg" /></figure><ol><li>A very good IK solution for unity.</li><li>I have used this in a VR project for placing the character foot correctly on the ground and sometimes overriding animations with IK movements in some scenarios.</li><li>Definitely very easy to use for human rigs.</li></ol><h4>Visual Studio Code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*pglvg2oNpGfJd4lhqKwJjw.jpeg" /></figure><p>I personally use the visual studio code as my code editor. Here are the extensions that helps me.<br>1. C# by OmniSharp<br>2.Code Spell Checker<br>3.Better Comments<br>4.Debugger for Unity<br>5.Dracula At Night [Very useful to make you code more readable with different color highlighting and I personally like the tone of the back ground color]<br>6.Unity Tools<br>7. Unity Code Snippets<br>8.Bracket Pair Colorizer<br>9.C# XML Documentation Comments <br> [generates summary comments for ///]</p><p><strong>Asset usage Detector<br></strong><a href="https://assetstore.unity.com/packages/tools/utilities/asset-usage-detector-112837#publisher">https://assetstore.unity.com/packages/tools/utilities/asset-usage-detector-112837#publisher</a><br>Helps you find out objects and script components used in your scenes. Life saver for debugging huge projects.</p><p><strong>Amplify Shader Editor<br></strong>The best node based graphic editor tool for Unity. Though unity has the new shader graph now, you will feel at home with it coming from Unreal material editor.<br>Its well maintained plugin by its devs.</p><p>Creating shaders with node based UI. You can research this or the latest shader graph from unity too.</p><h4>Easy Save</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*wq5OYD0-t1DZ-OTLq2tNZQ.jpeg" /></figure><p>If you are struggling to save different file type in unity which aren’t possible by Unity PlayerPref then EasySave is here to save you. Its very easy to use in code and supports a lot of different data types.<br>1. Easy to use and well documented.<br>2. Supports saving and reading of a variety of data types.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=459acdaf7306" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI/CD setup with Unity, Plastic SCM, TeamCity : The Implementation Part-2]]></title>
            <link>https://medium.com/@soumyaripan/ci-cd-setup-with-unity-plastic-scm-teamcity-the-implementation-part-2-ef3071bfb6f7?source=rss-36de213f9227------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef3071bfb6f7</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[teamcity]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Soumya Ranjan Sahoo]]></dc:creator>
            <pubDate>Sun, 05 Jun 2022 10:57:19 GMT</pubDate>
            <atom:updated>2022-06-05T11:02:42.229Z</atom:updated>
            <content:encoded><![CDATA[<h3>CI/CD setup with Unity, Plastic SCM, TeamCity : The Implementation Part-2</h3><p><em>Note : This article is about how to setup the CI/CD setup with unity, plastic scm, teamcity and the important coding part for it.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PiEH4_HYy-g4s47z35jFNA.jpeg" /><figcaption>haha, making builds can become exhausting if you don’t have the correct process. (src : Unsplash)</figcaption></figure><h4>Intro</h4><p>Last article I explained the use case of CI/CD for our game. Now let’s get down to the implementation. I will simply explain and share you some of the resources that I followed to set it up. Then the respective code for some build configs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V18iRwn2egFy2gQmQm0jQg.png" /><figcaption>(Execution flow for a build triggered)</figcaption></figure><h4>Useful Resources</h4><p>I won’t go fully in detail as this setup can vary for different teams as per their requirements. I am sharing some specific code and link references hoping it helps.</p><p>Following sources were helpful in setting up the Teamcity with Unity and Plastic for me.<br>1. <a href="https://www.youtube.com/watch?v=Sh_BRCw7prc&amp;t=384s">https://www.youtube.com/watch?v=Sh_BRCw7prc&amp;t=384s</a> <strong>[CI for Unity Games Using TeamCity]</strong></p><p>2.<a href="https://www.jetbrains.com/help/teamcity/continuous-integration-with-teamcity.html#Basic+TeamCity+concepts">https://www.jetbrains.com/help/teamcity/continuous-integration-with-teamcity.html#Basic+TeamCity+concepts</a> <strong>[This doc has everything that you want to know and guide yourself through the Teamcity CI/CD software]</strong></p><p>3. <a href="https://www.plasticscm.com/documentation/technical-articles/how-to-integrate-plastic-scm-with-teamcity-ci">https://www.plasticscm.com/documentation/technical-articles/how-to-integrate-plastic-scm-with-teamcity-ci</a> <strong>[Setting up Plastic SCM in Teamcity]</strong></p><p>Once all of these base software are setup then you will be needing to create build configs.<br>For the Unity Build Script which will be called from Teamcity you can refer this link : <a href="https://github.com/Nordeus/UnityBuildPipeline">https://github.com/Nordeus/UnityBuildPipeline</a></p><p>Note: <em>Please go through these links as I don’t explain the exact step by step setup here.</em></p><h4>CI/CD build configs flow</h4><p>I have three build configs<br> <strong>1. Quest Build Config :</strong> makes the executable build for Oculus Quest.<br><strong> 2. Upload Build Config :</strong> This is triggered once the Quest Build Config Finishes.<br>- This will zip the out put apk file and will upload to the share point.<br>- Once the file is uploaded then it sends a notification on teams group and a mail to the respective users.<br>- Also if build fails you get a notification.<br><strong> 3. Revert VCS Build Config :</strong> This config will revert the local VCS changes/checkouts after the build is completed to make sure no project files are checked out by the build PC after the build is complete.</p><h4>Code : Build Script (C#)</h4><p>The following script is a slightly modified version of this one : <a href="https://github.com/Nordeus/UnityBuildPipeline">https://github.com/Nordeus/UnityBuildPipeline</a>.<br>The below script generates a signed apk with the timestamp in its name so its easier to track the builds in history.</p><pre>public static void BuildAndroid()</pre><pre>{<br>string buildVersion = &quot;1&quot;, buildVersionCode = &quot;1&quot;, buildNameForQuestBase = &quot;AutomatedBuildQuest_QA&quot;;<br></pre><pre>// Create a time stamp for adding to build name<br>string timeStamp = &quot;_&quot; + System.DateTime.Now.Month.ToString() + &quot;M&quot; + System.DateTime.Now.Day.ToString() + &quot;D&quot; + System.DateTime.Now.Hour.ToString() + &quot;H&quot; + System.DateTime.Now.Minute.ToString() + &quot;m&quot;;</pre><pre>List&lt;string&gt; scenePaths = new List&lt;string&gt;();</pre><pre>foreach (EditorBuildSettingsScene scenePath in EditorBuildSettings.scenes)<br>{<br>if (scenePath.enabled)<br>scenePaths.Add(scenePath.path);<br>}<br>string[] allBuildScenes = scenePaths.ToArray();<br>buildVersion = PlayerSettings.bundleVersion;<br>buildVersionCode = PlayerSettings.Android.bundleVersionCode.ToString();<br>BuildPlayerOptions buildPlayerOptionsAndroid = new BuildPlayerOptions();<br>buildPlayerOptionsAndroid.scenes = allBuildScenes;</pre><pre>string fullBuildNameForQuest = buildNameForQuestBase + &quot;_&quot; + buildVersion + &quot;_&quot; + buildVersionCode + timeStamp;</pre><pre>buildPlayerOptionsAndroid.locationPathName = &quot;BuildsOutput/Quest/Build/&quot; + fullBuildNameForQuest + &quot;.apk&quot;;</pre><pre>buildPlayerOptionsAndroid.target = BuildTarget.Android;<br>buildPlayerOptionsAndroid.options = BuildOptions.None;<br>PlayerSettings.Android.useCustomKeystore = true;<br>PlayerSettings.Android.keystoreName = &quot;Assets/user.keystore&quot;; // provide path to the keystore<br>PlayerSettings.Android.keystorePass = &quot;--------&quot;;<br>PlayerSettings.Android.keyaliasName = &quot;---------&quot;;<br>PlayerSettings.Android.keyaliasPass = &quot;---------&quot;;</pre><pre>// Check and create the Directories if doesn&#39;t exist<br>CreateBuildPaths();</pre><pre>// Write the build name to file<br>WriteBuildNameToFile(BuildTarget.Android, fullBuildNameForQuest);</pre><pre>Debug.Log(&quot;BuildScript : Starting android build.&quot;);</pre><pre>// Start the build<br>BuildReport buildReport =<br>BuildPipeline.BuildPlayer(buildPlayerOptionsAndroid);</pre><pre>BuildSummary buildSummary = buildReport.summary;<br>}</pre><h4>Code: Compressing file with Powershell</h4><p>Creates two zip copies of the output build file. One as a common back up of last build and the other one with date-time stamp to upload to share point.<br>Once upload complete, it will delete the second zip file.</p><pre># Retrive the build name from the text file and give the same to compressed zip file name<br>$destinationQuestBuildNameFile = &quot;D:\Workspace\Devops\TeamCity\buildAgent\work\9749330ae955974\BuildsOutput\Quest\BuildNameQuest.txt&quot;<br>$QuestCompressedFileName = &quot;QuestBuildCompressed.zip&quot;<br>if((Test-Path -path $destinationQuestBuildNameFile)) <br>{<br> $QuestCompressedFileName = Get-Content $destinationQuestBuildNameFile<br>}</pre><pre># Make a zip folder of the target Quest build<br>$destinationQuestBuildFolder = &quot;D:\Workspace\Devops\TeamCity\buildAgent\work\9749330ae955974\BuildsOutput\Quest\Build&quot;<br>$destinationQuestBuildZipFile = &quot;D:\Workspace\Devops\TeamCity\buildAgent\work\9749330ae955974\BuildsOutput\Quest\&quot;+$QuestCompressedFileName+&quot;.zip&quot; <br>$destinationQuestBuildBackupZipFile = &quot;D:\Workspace\Devops\TeamCity\buildAgent\work\9749330ae955974\BuildsOutput\Quest\QuestBuildCompressed_Backup.zip&quot;<br>Compress-Archive -Path $destinationQuestBuildFolder -DestinationPath $destinationQuestBuildZipFile -Force<br>Start-Sleep -Seconds 10<br>Copy-Item $destinationQuestBuildZipFile $destinationQuestBuildBackupZipFile<br>Start-Sleep -Seconds 10<br>write-host &quot;Build Compressed locally.&quot;</pre><h4>Code : Uploading large files to Sharepoint</h4><p>Sharepoint has a default limit of 250MB file size upload limit. Below powershell script will work for uploading higher file sizes &gt; 250MB.</p><pre>#Load SharePoint CSOM Assemblies<br>Add-Type -Path &quot;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll&quot;<br>Add-Type -Path &quot;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll&quot;<br> <br>#Set parameter values<br>$SiteURL=&quot;<a href="https://autovrse.sharepoint.com/sites/GameBuilds">https://xyz.sharepoint.com/sites/GameBuilds</a>&quot;<br>$SourceFilePath=$destinationQuestBuildZipFile<br>$TargetFolderRelativeURL =&quot;/sites/Builds/Shared Documents/General/Builds/Game/AutomatedBuild/QA&quot;<br>#Setup Credentials to connect<br>$AdminName =&quot; admin mail id&quot;<br>$AdminPassword =&quot;pswd&quot;</pre><pre>#Setup Credentials to connect<br>$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($AdminName,(ConvertTo-SecureString $AdminPassword -AsPlainText -Force))</pre><pre>Try {<br>    #Setup the context<br>    $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)<br>    $Ctx.Credentials = $Credentials<br> <br>    #Get the file from disk<br>    $FileStream = ([System.IO.FileInfo] (Get-Item $SourceFilePath)).OpenRead()<br> <br>    #Calculate Target URL<br>    $SourceFileName = Split-path $SourceFilePath -leaf<br>    $TargetFileURL = $TargetFolderRelativeURL+&quot;/&quot;+$SourceFileName<br> <br>    Write-Output &quot;Upload job started $(Get-Date)&quot;<br>    #Upload Large File to SharePoint Online<br>    $Ctx.RequestTimeout = [System.Threading.Timeout]::Infinite<br>    [Microsoft.SharePoint.Client.File]::SaveBinaryDirect($Ctx, $TargetFileURL, $FileStream,$True)<br>    Write-Output &quot;Upload job finished $(Get-Date)&quot;</pre><pre>#Close file stream<br>    $FileStream.Close()<br>    write-host &quot;File uploaded Successfully!&quot; -f Green<br>}<br>Catch {<br>    write-host &quot;Error Uploading File: $($_.Exception.Message)&quot; -foregroundcolor Red<br>}</pre><pre>#Read more: <a href="https://www.sharepointdiary.com/2020/05/upload-large-files-to-sharepoint-online-using-powershell.html#ixzz7QExsdVDA">https://www.sharepointdiary.com/2020/05/upload-large-files-to-sharepoint-online-using-powershell.html#ixzz7QExsdVDA</a></pre><h4>Code : Send mail notification (Powershell)</h4><p>This will send an email notification to the target mail ids.</p><pre>#Send mail to user group<br>$SmtpServer = &#39;smtp.office365.com&#39;<br>$SmtpUser = &#39;admin mail id&#39;<br>$smtpPassword = &#39;pswd&#39;<br>$MailtTo = &#39;target user group mail id&#39;<br>$MailFrom = &#39;admin mail id&#39;<br>$MailSubject = &quot;Quest Build Ready $SmtpServer&quot;<br>$BodyOfMessage = &quot;link : <a href="https://xyz.sharepoint.com/sites/ProjectTeam/Shared%20Documents/General/Game%20Studio/Builds/Game/AutomatedBuild/QA">https://xyz.sharepoint.com/sites/ProjectTeam/Shared%20Documents/General/Game%20St/Builds/Game/AutomatedBuild/QA</a>&quot; <br>$Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $SmtpUser, $($smtpPassword | ConvertTo-SecureString -AsPlainText -Force) <br>Send-MailMessage -To &quot;$MailtTo&quot; -from &quot;$MailFrom&quot; -Subject $MailSubject -Body $BodyOfMessage -SmtpServer $SmtpServer -UseSsl -Credential $Credentials<br>write-host &quot;Sent notifications to users&quot;</pre><h4>Code : Send Teams notification</h4><p>This will send a teams channel notification using webhook. So you are immediately notified from teams itself.<br>It will also delete the duplicated zip file that was created for uploading.</p><pre># Send notifications to teams channel<br>$JSONBody = [PSCustomObject][Ordered]@{<br>    &quot;<a href="http://twitter.com/type">@type</a>&quot;      = &quot;MessageCard&quot;<br>    &quot;<a href="http://twitter.com/context">@context</a>&quot;   = &quot;<a href="http://schema.org/extensions">http://schema.org/extensions</a>&quot;<br>    &quot;summary&quot;    = &quot;Incoming Alert Test Message!&quot;<br>    &quot;themeColor&quot; = &#39;0078D7&#39;<br>    &quot;title&quot;      = &quot;Quest Build is complete&quot;<br>    &quot;text&quot;       = &quot;Get latest build here : <a href="https://xyz.sharepoint.com/sites/ProjectTeam/Shared%20Documents/General/Game%20Studio/Builds/Game/AutomatedBuild/QA">https://xyz.sharepoint.com/sites/ProjectTeam/Shared%20Documents/General/Game%20St/Builds/Game/AutomatedBuild/QA</a> &quot;<br>}<br>$TeamMessageBody = ConvertTo-Json $JSONBody -Depth 100<br>$parameters = @{<br>    &quot;URI&quot;         = &#39;<a href="https://xyz.webhook.office.com/webhookb2/1a3a9ee2-108a-412e-a546-193c5f30d061@1022f11b-6141-4b4d-b313-1f4cdb7d3ed5/IncomingWebhook/669dd33f90b64442832f81b6e231e3f5/3cd92bc1-6aa6-4694-9cc4-b176b93b5583&#39;">https://xyz.webhook.office.com/webhookb2/...&#39;</a><br>    &quot;Method&quot;      = &#39;POST&#39;<br>    &quot;Body&quot;        = $TeamMessageBody<br>    &quot;ContentType&quot; = &#39;application/json&#39;<br>}<br>Invoke-RestMethod <a href="http://twitter.com/parameters">@parameters</a> | Out-Null</pre><pre># Clear all the files in the build folder once zip uploaded [Keep the zip]<br>Get-ChildItem -Path $destinationQuestBuildFolder -Include * | remove-Item -recurse</pre><pre>Write-Output &quot;Waiting for 10sec $(Get-Date)&quot;<br># Wait for 3mins before deleting the zip so it gets uploaded first<br>Start-Sleep -Seconds 10</pre><pre>Write-Output &quot;Deleting the zip file $(Get-Date)&quot;<br># Delete the zip file which will was uploaded to cloud<br>if((Test-Path -path $destinationQuestBuildZipFile)) <br>{<br>Get-ChildItem -Path $destinationQuestBuildZipFile -Include *.* -File -Recurse | foreach {$_.Delete()}<br>}</pre><h4>Code: Revert the VCS changes</h4><p>Once the build is done there will be some projects files that will be locally checked out by the vcs. This script undo the changes for Plastic SCM in the local workspace path. You can replace this as per your own vcs.</p><pre>cd d:<br>cd D:\Workspace\Devops\TeamCity\buildAgent\work\9749330ae955978<br>cm unco --all</pre><p>That’s all. Wish you have a smooth CI/CD setup.</p><p>Peace n Love. 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef3071bfb6f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview of CI/CD setup with Unity, Plastic SCM, TeamCity for automating builds in our Game]]></title>
            <link>https://medium.com/@soumyaripan/overview-of-ci-cd-setup-with-unity-plastic-scm-teamcity-for-automating-builds-in-our-game-e98516213f8f?source=rss-36de213f9227------2</link>
            <guid isPermaLink="false">https://medium.com/p/e98516213f8f</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[teamcity]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Soumya Ranjan Sahoo]]></dc:creator>
            <pubDate>Tue, 03 May 2022 09:55:13 GMT</pubDate>
            <atom:updated>2022-06-05T11:02:05.946Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview of CI/CD setup with Unity, Plastic SCM, TeamCity for automating builds in our Game, Part-1</h3><p><strong>Note : </strong><em>This article explains the use case scenario of CI/CD set up for our unity game for build automation. I will write a new article for the step by step setup soon.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55xkbGmJhtQuvXfQHNWaTQ.jpeg" /><figcaption>Some devs at work may be planning a build..haha (src : Unsplash)</figcaption></figure><p>I didn’t know about CI/CD, until recently our <em>“Director of vibes aka Senpai”</em> asked me to explore it in the build pipeline, for our game. Though the game just released in free demo we started feeling the pressure of an inefficient manual build process which was taking a lot of my time to make builds and affecting the productive hours. It was obviously getting out of hand.</p><p>So the plan was to automate the whole process where on a single button press all of our scenes should build lighting, then a build is made for the respective platform, gets uploaded to an online SharePoint location and sends a notification on the teams channel. In case build fails also send a notification.</p><p>Still there are some more functionalities to add to our current deployment, I thought of writing a blog for how setting up a CI/CD system for your game can automate the build process and save a ton of time for your team. Believe me if you haven’t used it, you must. It will save you a ton of headache and some more free weekends. And you will definitely appreciate DevOps. 😄</p><p>Trust me, you will need this soon for your game.</p><h4>What are the pain points ?</h4><p>Simply reduce a lot of waisted time and improve productivity, with automating the mundane repetitive tasks in making a build.</p><p>Let’s consider this example :<br>On average if your game build takes you 15mins(being generous 😄) including making builds and sharing it with all team members.<br>In a year you made 150 builds. i.e <strong>150 * 15min = 2250mins.</strong><br>If you are using your system then you are locked out for <strong>37.5 hours</strong>, excluding the anxiety of build fails and incorrect builds. Just seems too much unnecessary repeated things to get bored off.</p><p>Now if I say, you just have to spend 10–15seconds for each build to trigger and when the build is done its just ready to download for anyone in the team(in approx 15mins). Even that 15 seconds can be automated with some VCS trigger.<br>Effectively in a year with 150 builds <br>you are only spending <strong>150 * 0.25min = 38mins</strong> for making builds. <br>That’s a hoping <strong>6000%</strong> increase in build process optimization.<br>As a dev you should be building features and mechanics rather spending time on making builds.</p><p>Practically as the game develops more this build time of 15mins will become 30-45mins and there will be multiple target platforms to build for. Taking all these things into account, a good automated build process will help you a lot.</p><p>Also there are situation where if I forget any settings then I have to rebuild each time manually. This is ridiculous if you have experienced similar scenario on the release day or the day before. All these gets taken care of automatically and the human error is reduced a lot with a CI/CD setup. Its practically a bot and they don’t make mistakes like humans do for repeating tasks.</p><p><strong><em>As Senpai says : We have to reduce the human error in our pipelines.</em></strong> 😄<br>And this is true to minimize unnecessary crunch time for you team.</p><h3>What’s the Output of our CI/CD setup ?</h3><p>We have one spare desktop in which we have the CI/CD being setup.<br>So at any time you can trigger a Quest or PCVR build with just a click of a button.</p><p>Then it automatically<br> 1. Pulls latest changes/submissions from the VCS server, <br> 2. Does preprocess like settings check, light building for scenes (if its needed)<br> 3. Makes target platform build.<br> 4. Uploads to a common sharepoint folder and shares the link in a microsoft teams channel where everyone in game team gets notification to download it.<br> 5.In case the build fails it sends the fail notification so we know time to fix something.</p><p>Though we can trigger the build automatically from vcs, we are triggering the builds from the web ui for now. Still just takes 5seconds for me to trigger a build.</p><p>As you can see it feels so seamless. When I am done with some changes and I felt X person should try this out in a build or QA needed the latest build now. So I simply trigger the build on the separate build PC and continue working on my other tasks. After 15mins the build is done and automatically sent on the Teams group. It just happens in the background, and all these time my system is free for me to work. No anxiety of staring at the unity build progress bar slowly moving from hangover, haha...</p><h4><strong>Architecture</strong></h4><p>The whole setup is done on a single PC, which we can scale depending on the project size and build requirements.</p><p>CI/CD setup = Unity + Plastic SCM + TeamCity<br>CI/CD setup = GameEngine + VCS + CI/CD tool</p><p>The architecture is simple. In a separate PC we have unity and plastic scm running. We install teamcity server and build agent on the same system. Then all the required configuration are done on the teamcity for automating builds.</p><p>I am using the central repository from plastic cloud version. Its exactly same if you have local repository for your project or using any other vcs.</p><h4>How Our CI/CD works now ?</h4><p>We are using Plastic SCM cloud edition having a central repo in cloud. In teamcity we have two configs which either makes a Oculus Quest apk build or a PCVR build.</p><p>We can also trigger the builds automatically from the vcs, but for now we are just doing this on the teamcity web ui.</p><p>From the TeamCity web ui we trigger any target platform build. Then teamcity opens the unity in background does the preprocess like light building, game settings check, signing apk etc, and finally makes the build.<br>Once the build is done there are couple of process which gets auto triggered, like the build is zipped and uploaded to the cloud and notification is sent on teams channel all automatically.<br>Also once the build is done it automatically reverts any possible changes in the plastic vcs from the workspace of the local system that might have got checked out during the build process.</p><h4>Future improvements</h4><p>In near future we plan on improving the followings</p><ol><li>Better preprocessing to check whether the settings in each game levels are correct and all debug settings are turned off. This is important for us as there are going to be a lot more levels that are going to be in the build. And it will be difficult to check all of them manually.</li><li>Selectively build lightings for certain scenes as it builds for all scenes now if enabled.</li><li>Creating a single build settings Scriptable Object where we can set all the required parameters needed to change/control properties of the build.</li><li>Settings up the CD part where it can directly push the builds to the respective online stores directly.</li></ol><p>Hope this helps you in your game development journey.</p><p>Peace n love. 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e98516213f8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unity Performance optimization for Designers Part-1]]></title>
            <link>https://medium.com/@soumyaripan/unity-performance-optimization-for-designers-part-1-c4c65f931e27?source=rss-36de213f9227------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4c65f931e27</guid>
            <category><![CDATA[unity-game-development]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[draw-call]]></category>
            <category><![CDATA[reduce-draw-call]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Soumya Ranjan Sahoo]]></dc:creator>
            <pubDate>Thu, 17 Sep 2020 11:26:02 GMT</pubDate>
            <atom:updated>2022-05-03T09:50:24.157Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reducing Draw calls in Unity.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FcRUmHJMr5D29axu" /><figcaption>Photo by <a href="https://unsplash.com/@chrisliverani?utm_source=medium&amp;utm_medium=referral">Chris Liverani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Saving rendering cost while designing a level early on, will save you time in optimization and frustration later in game production. The better you know how and what causes these bottlenecks the easier it becomes to track down the unknowns.</p><p>In a game code, physics, assets, memory management, draw calls, etc can cause performance issues and FPS drop. If any of these issues happen that commonly affect the FPS, scene load time, memory consumption, device overheating, etc.</p><p>For this discussion, we will mainly focus on draw calls. The simple concept is if your draw call is high your GPU &amp; CPU are busy with all those drawing and FPS goes downhill. Draw calls are easy to fix if you get the fundamentals right.</p><blockquote>First we have to understand how to get the relevant performance numbers and what each numbers mean, then how to improve those numbers. The topics will be covered:<br><strong>How to tracks the FPS and performance parameters?<br>What is the Baseline Target Performance to aim for?<br>What are the different terms?<br>Ways to reduce the draw calls ?<br>Test it until you are sure.</strong></blockquote><p>Note: If you already know all the concepts then you can directly skip to the “<strong><em>Ways to reduce the draw calls ?</em></strong><em>”</em> section.</p><h3><strong>How to track the FPS and performance parameters?</strong></h3><p>You can get the stats easily in Unity in the game view window under the stats tab. The main parameters to track is the FPS(obviously), Batches, and SetPass calls. I will explain these in a bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*QlOHyECkm99SRORnqFOOAA.png" /><figcaption>Stats tab</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*CfeN98N5c9ECWgROlvuq4w.png" /><figcaption>Profiler Rendering data</figcaption></figure><p>The Rendering data in the profiler gives you a more detailed overview of where your draw calls are spent and how well they are batched.</p><p>Also, you can use Frame Debugger to exactly know how the draw calls are being rendered with what objects on the display by GPU. But I will cover that in more detail in another discussion.</p><h3><strong>What is the Baseline Target Performance to aim for?</strong></h3><p>When designing a level set a performance target baseline for the scene based on the hardware you are targeting. This sets a clear target and reference for the scene you are designing. You can easily find it in the hardware vendors doc or Unity forums game dev discussing the same.<br>Ref: <a href="https://developer.oculus.com/documentation/unity/unity-perf/">https://developer.oculus.com/documentation/unity/unity-perf/</a> [Baseline Rendering Target for Oculus VR]</p><p>When you are tracking these parameters for a scene some are calculated per frame. So if it is mentioned for PC VR the triangle count is 500k-1M which means it is per frame with all the draws on how many triangles are rendered in that frame.</p><h3><strong>What are these different terms?</strong></h3><p>It took me a good amount of time to understand what the terms are in Unity an how it optimizes rendering.</p><h4><strong>Draw calls</strong></h4><p>This is the call to the GPU to draw an object on the display. If there are two objects with two materials then, GPU is called twice to draw them. If one object with one material then it is one draw call for the object. One object two materials are two draw calls for the same. Refer to image (Ref1.1).</p><h4><strong>Set pass calls</strong></h4><p>While creating a Unity shader, you can have one pass or multiple passes depending on the material effect and complexity. Example: If you place an object’s one half behind the wall and the other half visible, but you want to have the hidden part to be visible as a transparent custom depth then it will have another pass so two set pass calls. <br>More set pass calls mean more calculations for CPU unless you reuse the materials. By default, each different material in the scene has at least one set pass call. But if one material(same parameters) has been reused on multiple objects then it’s one set pass call as the material is just calculated once. If your scene is big and has a lot of objects not optimized well then this number can easily shoot near 1000.</p><h4><strong>Batches</strong></h4><p>The concept of batching is simple and smart. Batching static objects means similar objects which share the same material will be grouped and submitted as a single object to be drawn by GPU. Rather than drawing them individually, they are drawn now as a single object So we save time on those draw calls. Yeaaa!!!</p><p>If you have 3 similar objects with the same material in view. If they are not static batched then it is 3 draw calls. Now if they are batched then unity only batches them together and then draws them in one go resulting only one draw call.<br>Ref : <a href="https://docs.unity3d.com/Manual/DrawCallBatching.html?_ga=2.94713564.1914214501.1598674954-7759892.1598674954">https://docs.unity3d.com/Manual/DrawCallBatching.html?_ga=2.94713564.1914214501.1598674954-7759892.1598674954</a> [Will delete]</p><h4>Batches Vs Draw Calls</h4><p>A batch is a group of draw calls that will be drawn together by the GPU. If all objects are not batched then it has at least one draw call with one batch for each. If objects can be batched together to one batch then for them the draw call is reduced and not one for each now. (Drawcall &gt;= Batches)</p><p>So in the scene try to decrease the batch size which will ultimately decrease the number of batches. Another way to look at batch is by making groups of objects render together. So more efficiently you let unity group objects the easier it becomes for the CPU &amp; GPU to draw them.<br>Ref: <a href="https://support.unity3d.com/hc/en-us/articles/207061413-Why-are-my-batches-draw-calls-so-high-What-does-that-mean-#:~:text=A%20draw%20call%20is%20a,each%20object%20inside%20the%20batch.">https://support.unity3d.com/hc/en-us/articles/207061413-Why-are-my-batches-draw-calls-so-high-What-does-that-mean-#:~:text=A%20draw%20call%20is%20a,each%20object%20inside%20the%20batch.</a></p><h4>Note</h4><p>Our main aim will be to reduce the number of batches first which will ultimately bring down the draw calls and set pass calls. Once both are down and you still see more set pass calls then you can further optimize it.</p><h3><strong>Ways to Reduce draw calls?</strong></h3><p>Before explaining the way I approach this is that all these optimizations should still maintain the quality-looks of the level I originally aimed for. My approach with all optimizations has always been incremental so that I can keep track of the looks.<br>Note: Important to remember is the total number of vertices per frame rendered is also dependent on the draw call.</p><h4><strong>Make texture atlas for objects</strong></h4><p>If your object has more than one material with respective textures then consider making a texture atlas and using a single material instead. For example, you have a vending machine with 4 to 5 materials then combine your textures for each material into one then UV map them correctly and use in a single material for the whole object. The draw call comes down from 5 to 1 now.</p><h4><strong>Merge objects close together</strong></h4><p>This is a very common optimization in both Unity and UE. If you have some static objects placed together nearby and they are not supposed to move or to interact in the game then you can combine them to one mesh and then use a new single combined material with a texture atlas to reduce the draw call to one. There are some tools you can use for merging to avoid manually doing this.</p><h4><strong>Make static batching</strong></h4><p>This is the one that took me some time to understand in unity. Internally unity groups and bakes the respective static batching models with shared materials into a combined mesh and renders them in one go thus saving more draw calls. It consumes comparatively more memory. Another advantage is you do not have to merge objects and they are still culled individually. If you have set up everything correctly then unity takes care of static batching automatically. To enable static batching enable the same on similar objects with shared material or the same material. <br>Also, enable static batching in Project Settings &gt; Player Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*ZmBWkLLA5X9iiYfN649CQQ.gif" /><figcaption>Static batched Ref:1.1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*wEuMu7ON8YChWSABVgLaYQ.png" /><figcaption>Stats tab</figcaption></figure><p>Here the left three ducks are static batched and the right three are not batched.<br>1(background) + 1(3 static ducks) + 3(3 non- static ducks) =5 draw calls in total.<br>As you can see if we batch all of them now then we will have 1 draw call for the 6 ducks rather having 6 draw calls, like one for each.</p><h4><strong>Make dynamic batching</strong></h4><p>For dynamic objects, unity does batch dynamically at run time. For this to work enables the GPU instancing in the material of the non-static object.If you try putting a GPU instanced material on a static object then unity shows warning in the inspector. This batching is always at the run time calculated by CPU before GPU draws them, so not ideal to use this where static batching can be done if your objects can be static. It might be also less intensive so better to always check the performance before taking a call.<br>In the below image as the objects are spawned when paused and on checking you an see all the duck objects use one drawcall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*d2cn0dOsjY-Knpc0a0UyCQ.gif" /><figcaption>Dynamic batched</figcaption></figure><p>This is limited to small meshes, as batching larger meshes dynamically is more expensive than not batching them.</p><h4><strong>Merge Similar Objects with overlapping UVS</strong></h4><p>This is a pretty cool trick which I got to know from one of my designer friend. So you basically overlap the UVs of similar objects placed together and then merge them in a blender. Then you use a single material with a texture to render all objects in the scene. This texture is mapped to the overlapping UV region for the objects. <strong>Image: [Must Image]</strong></p><h4><strong>Reducing SetPass calls</strong></h4><p>As we discussed earlier more SetPass calls mean more calculations for CPU. In general, each object having simple material will contribute to one setpass call. <br>The idea is to reduce SetPass calls by reusing the same materials. Also, complex materials cause more SetPass calls per material so plan accordingly their placements if there are many.<strong><br>Example:</strong> If you have one pass call for 100 similar objects, on the other case you have one pass call for each for 100 similar objects then in the 1st case it will be obviously faster.</p><p>Finding the balance between all these methods is very important to optimize the rendering for the whole level. And as you keep implementing these and get used to, you start optimizing better by default.<br>Other things like postprocess, camera effects, shadows, lighting, and lightmaps will also cause in draw calls, which we will cover in some other discussion. But keep these things in mind while designing and testing a level.</p><h3>Test it till you are sure what’s happening</h3><p>One easy way to test each of these features is to setup an empty scene. In lighting make the Environment Lighting Source to Color instead of the skybox. Make your camera Clear Flags to Solid Colors. Disable all post process and directional light if any. Now in the stats tab, you will have only one setpass call and one batch. Now as you add objects with materials and enable the batching features and optimize it you can track the change in the values.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4c65f931e27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Work From Home During and After the Pandemic]]></title>
            <link>https://medium.com/@soumyaripan/work-from-home-during-and-after-the-pandemic-236a49fecf17?source=rss-36de213f9227------2</link>
            <guid isPermaLink="false">https://medium.com/p/236a49fecf17</guid>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[remote-working]]></category>
            <dc:creator><![CDATA[Soumya Ranjan Sahoo]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 19:19:12 GMT</pubDate>
            <atom:updated>2020-05-19T19:23:02.494Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Stay productive, while working in the comfort of your home.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*faAKlRRTVj8xaBwh" /><figcaption>Photo by <a href="https://unsplash.com/@mann_pantoja?utm_source=medium&amp;utm_medium=referral">manny PANTOJA</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As the Covid-19 pandemic spreads and becomes one of the most challenging diseases in decades for humans to tackle, most company have started encouraging employees to begin working from home. Though many of us are not habitual with work from home, doing this is important for us and others in slowing down the virus spread.</p><p>Like everything else in life this pandemic will also pass. We have to stay strong and take care of ourselves and others in the meantime.</p><p>Before we used to WFH(Work From Home) for a single day to a whole week, when we get sick or some emergency happened. Then we go back to the office where most of us are productive and focused during our office hours. You have to take work from home seriously. You should feel lucky that your job has the option to do WFH. A lot of people do not have that option. WFH might go on for a while even after the pandemic. So better accept it, try to increase productivity at home, because after some time you have to produce the same output as when you were when working in the office.</p><p>If you think about it we are the generation of the workforce who is going towards a culture of work from home. It’s also a good pivot because it allows more freedom and time for you. You get more time to spend at home with your family and obviously WFH is more flexible than commuting to office every day in traffic. With a little self-disciple and good habits, WFH will be a breeze.</p><p><strong>1.Setup Separate Workspace Area</strong></p><p>I can’t emphasize this enough. When we say separate workspace area, it has to be only for working purpose. I am assuring you, it can never be your bed. Most of us have an intimate relationship with our bed 😊, which might come between our work. So setting up different area or set up for workspace psychologically prepares us, and our brain takes our office work seriously when doing at home. Some people can work from bed. But for most it does not work out. In the first hour you are serious and the next you find out leaning over your pillow and then next lying on the bed tapping your mobile or just looking at your laptop screen being lazy. Without your knowledge you had a nice long sleep in the middle of the day and the whole time table is messed up now, as you won’t get sleep at night because you slept during the day while working.</p><p>Another interesting observation is when you have a clearly defined area for working your brain stays focused and has less outside thoughts. For example in general while you are at the office you think more about office-related stuff rather thinking everything happening at home and vice versa.</p><p><strong>2. Take Office Hours Seriously</strong></p><p>You have to stay focused during office hours at your table as if you are working in your real office. Because when you combine office working hours with other things then, during other things you might have to finish your pending office works. Then unknowingly your 8 hours office time stretches to 12–14 hours, giving you frustration. If you maintain time sincerely then you are sure, whatever is pending today will be finished tomorrow during office time.</p><p>Another easy hack that helps me, is planning my whole day’s work. Every morning before starting work, I review my progress, note down targets for the whole day. Then I quickly plan on how to approach them each. This keeps me focused throughout the day as I have a clear idea of what to do and once it is done I am sure all my work for the day is finished. Though this does not apply if you do not have much work for the day. Then just finish it up and enjoy the rest of the free day.</p><p><strong>3. Stay In Contact With Office Colleagues and Team Mates</strong></p><p>This is crucial, I follow this seriously for many reasons. It helps me feel that I have company during the office hours, I am aware of what is happening with the works assigned to fellow colleagues, if it is relevant to me and in general it keeps me relaxed. People are likely to help you more often with your work, if you are in touch with them.</p><p>Every day I keep in touch with my team members about work, often do calls when everybody is available to maintain them in loop of my work in progress. <br>This helps in having the clarity of my milestones and finding any potential time waist from misinformation early. It’s better to discuss for 10–15 mins or send a message than working for 10 hours the whole day to find out the output does not match the requirement.<br>You can use various tools like Microsoft Teams, Discord, Slack, Skype, Zoom, etc.</p><p><strong>4. Maintain Hygiene</strong></p><p>At first thought, this does not mean that important but trust me wearing clean clothes, keeping your room clean, and sitting in front of a clean desk keeps your mind calm and reduces stress. If not sure try working for 2 weeks in a not so clean desk and wearing dirty pajamas, you will know.</p><p>Do you remember that one time you are working in flow and stretched your hand to grab an important piece of paper from the desk? You are moving your hand all around but still can’t find because your desk has been a mess for the last whole month, sometimes even months. Now even your desk is keeping secrets from you😉. In no time your flow becomes frustration which is completely unnecessary and can be avoided. It takes just 5 mins to tidy things up on your desk. You do not have to do even daily. For most, doing once a week for 5 mins is enough but saves you a great deal of frustration and worry.</p><p><strong>5. Take Care Of Health And Eat Healthy</strong></p><p>Its a very common mistake that most people do, and sometimes unknowingly being lost in work. It’s your body and mind which ultimately gets things done. If the body and mind itself are not ready then everything else won’t. You perform mediocre. Some of us have faced the situation where you are not feeling well but there is an unavoidable deadline. It’s like you have already tapped out in a boxing match but you still have to fight until the time is up. Isn’t it scary?</p><p>So give priority to eat healthy balanced food and do exercise. Loading on junk foods and drinking a ton of soda won’t help, rather make you feel more tired. Nobody is stopping you but not too much. You can take Caffeine, but keep track of your caffeine intake and treat it well.</p><p><strong>6. Take Breaks, Relax Yourself And Your Mind</strong></p><p>I am a big advocate for relaxing and being in a good mindset for better productivity. Even if you are healthy, you have all the resources in place to do your WFH, but if you are worried or thinking about how your boss might be thinking bad or something has broken down in house then you can’t focus on work. Human beings are not machines that work tirelessly. Not relaxing and overthinking will gradually affect your health and mental state. You won’t be as productive.</p><p>So relax. Dial-up your friends or family members, trigger a nice conversation with your neighbor, play with your kids, cook dinner with your wife, do some gardening, put Snapchat filter on your cats &amp; dogs, learn a new skill or just sit back on your sofa with a book.</p><p>7. <strong>Minimize Distraction</strong></p><p>Most human beings can’t multitask. Its’ just not a feature in us. You can only focus on one thing at a time well, otherwise, you are compromising on your productivity. But I agree we feel tempted to do it. There are solutions like maintaining proper time table, keeping buffer time in hand, starting earlier than you plan and the most important thing is to say no to the things which can be delayed, paused or not of priority at the moment. Washing your toilet or cleaning your backyard can wait till the weekend or you can do it in the evening and treat yourself with a tasty dinner for your day time work.</p><p>It’s better to work for 8 hours with focus and no distraction rather sitting there for 12–14 hours. The choice is yours.</p><p><strong>8. Set Time For House and Other Chores</strong></p><p>After working some days its common to mix up the house chores and office times, and without your knowledge you are cleaning house in the afternoon while finishing office work late at night. This happened to me at the beginning until I set some clear ground rules.</p><p>I was fed up with my bad habit of binge-watching late night after work and in the morning my lovely bed will never let me out of its sight. After a constant struggle of two hours and a lot of sweet talks, finally around 10 AM in the morning I am out of my bed, and at 11 AM I start office work. My office was cool enough for letting us not follow the timing if you do not have much tasks. But my department had a significant product release ahead. So I was pretty much busy during my office time.</p><p>Being busy in work, binge-watching at night, and sleeping, I neglected my household usual stuffs like cooking, taking out the garbage, cleaning my rooms, calling my friends and family members, etc. Gradually all these things piled up and one day I wake up surprised to find out my room has turned into an ancient underground subway with weird smell coming from the dustbin, which had been suppressed by bottles of room fresheners. I was not eating healthy, feeling mentally very heavy 🙄 and overall lazy to do anything. This couldn’t have gone for long.</p><p>So I planned quickly to fix this. Now following strict time-table to keep everything organized, I go to bed before 12 midnight and wake up sharp 7 AM in the morning after spending 7 dreamy hours with my bed. Jumping out of the bed I finish my morning chores, then read books for half an hour, prepare lunch, and by 10:30 AM I am all set. I start my projects around 11 AM feeling good about my self, being able to finish so much in the morning. After 10 PM at night I cook dinner, a little bit control over online entertainment and I am back to my cozy bed feeling happy and accomplished. It seems simple but not easy at first to suddenly change your lifestyle but it’s for the better to keep you physically and mentally sound.</p><p>— — In the end we get paid for our work and our employers except for quality output in return for the salary they give us. So our main focus should be finishing our respective tasks being productive, irrespective of the place. — —</p><p>So now it has been some days you started working from home. Sometimes you are productive and sometimes you are not. For many people this is not normal and maybe a first time experience. Our brain is not used to it, and it will take some time to accept it. Following certain self-discipline and practices you can make your work from home productive, fun, and easy.</p><p>Stay Healthy and Happy.😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=236a49fecf17" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>