<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Omar Fakhoury</title>
    <description>The latest articles on DEV Community by Omar Fakhoury (@omarfakhoury).</description>
    <link>https://dev.to/omarfakhoury</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3110361%2F1fb434b4-d85b-4a51-be57-9f1418bce826.jpg</url>
      <title>DEV Community: Omar Fakhoury</title>
      <link>https://dev.to/omarfakhoury</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omarfakhoury"/>
    <language>en</language>
    <item>
      <title>Exorcising MSCTFIME UI: How I Fixed Unity Game Flickering the Hard Way</title>
      <dc:creator>Omar Fakhoury</dc:creator>
      <pubDate>Wed, 30 Apr 2025 15:50:23 +0000</pubDate>
      <link>https://dev.to/omarfakhoury/exorcising-msctfime-ui-how-i-fixed-unity-game-flickering-the-hard-way-i7i</link>
      <guid>https://dev.to/omarfakhoury/exorcising-msctfime-ui-how-i-fixed-unity-game-flickering-the-hard-way-i7i</guid>
      <description>&lt;h3&gt;
  
  
  When your mouse click breaks fullscreen and a clean Windows reset still doesn’t fix it
&lt;/h3&gt;




&lt;h2&gt;
  
  
  🚀 TL;DR
&lt;/h2&gt;

&lt;p&gt;If you're playing Unity-based games (especially simulators) and every &lt;strong&gt;left-click causes a flicker&lt;/strong&gt; or momentary loss of focus in borderless or fullscreen mode — and nothing seems to fix it — this guide documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;weird culprit&lt;/strong&gt;: &lt;code&gt;MSCTFIME UI&lt;/code&gt; (Windows IME engine)&lt;/li&gt;
&lt;li&gt;All the &lt;strong&gt;failed fixes&lt;/strong&gt; I tried (so you don’t have to)&lt;/li&gt;
&lt;li&gt;The one solution that actually worked&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔥 The Symptom
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Unity games (like simulation-style titles) would &lt;strong&gt;flicker&lt;/strong&gt; whenever I clicked&lt;/li&gt;
&lt;li&gt;Borderless fullscreen and even exclusive fullscreen were affected&lt;/li&gt;
&lt;li&gt;OBS confirmed the flicker was in the &lt;strong&gt;rendered frame&lt;/strong&gt;, not a display issue&lt;/li&gt;
&lt;li&gt;Games ran at full FPS and smooth input otherwise&lt;/li&gt;
&lt;li&gt;FocusLogger confirmed: &lt;strong&gt;&lt;code&gt;MSCTFIME UI&lt;/code&gt;&lt;/strong&gt; (via &lt;code&gt;explorer.exe&lt;/code&gt;) stole focus &lt;strong&gt;every click&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔗 Diagnosing the Issue
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Tools I used:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;FocusLogger&lt;/strong&gt; (by Jocys.com) to track window focus changes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Autoruns&lt;/strong&gt; (Microsoft Sysinternals) to disable startup noise&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PowerShell + Task Manager&lt;/strong&gt; to find overlays and background services&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OBS&lt;/strong&gt; to verify if the flicker showed in captured frames&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heaven Benchmark&lt;/strong&gt; to confirm non-Unity apps were unaffected&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Confirmations:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;MSCTFIME UI&lt;/code&gt; process from &lt;code&gt;explorer.exe&lt;/code&gt; took focus &lt;strong&gt;on every left-click&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;The flicker was &lt;strong&gt;recorded in OBS&lt;/strong&gt; — meaning it was software/render-based&lt;/li&gt;
&lt;li&gt;Affected only &lt;strong&gt;Unity-based games&lt;/strong&gt;, not Unreal, Source, or standalone engines&lt;/li&gt;
&lt;li&gt;Fullscreen Heaven Benchmark had &lt;strong&gt;zero issues&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ❌ What Didn’t Work
&lt;/h2&gt;

&lt;p&gt;Over several days of investigation, I tried literally everything:&lt;/p&gt;

&lt;h3&gt;
  
  
  Input-related fixes:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Changed language settings to single-language layout&lt;/li&gt;
&lt;li&gt;Removed extra input languages&lt;/li&gt;
&lt;li&gt;Disabled IME in every place possible&lt;/li&gt;
&lt;li&gt;Killed &lt;code&gt;ctfmon.exe&lt;/code&gt; and &lt;code&gt;TextInputHost.exe&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Disabled "Tablet Input Service"&lt;/li&gt;
&lt;li&gt;Tried registry tweaks (&lt;code&gt;ForegroundLockTimeout&lt;/code&gt;, LangBar, etc)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Display/driver fixes:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Full DDU wipe of NVIDIA drivers&lt;/li&gt;
&lt;li&gt;Disabled overlays: Steam, Discord, Xbox Game Bar, GeForce Experience&lt;/li&gt;
&lt;li&gt;Disabled fullscreen optimizations and forced DPI overrides&lt;/li&gt;
&lt;li&gt;Tried different monitors and refresh rates&lt;/li&gt;
&lt;li&gt;Swapped USB ports and mice&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Background bloat:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Disabled Logitech, Razer, NZXT CAM, FxSound, OhMyPosh&lt;/li&gt;
&lt;li&gt;Cleaned up startup entries using Autoruns&lt;/li&gt;
&lt;li&gt;Disabled all non-Microsoft services via msconfig&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  OS resets:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Reset This PC" with "Keep My Files"&lt;/strong&gt; — did &lt;strong&gt;NOT&lt;/strong&gt; fix it&lt;/li&gt;
&lt;li&gt;Registry still had junk&lt;/li&gt;
&lt;li&gt;IME services still active&lt;/li&gt;
&lt;li&gt;MSCTFIME UI still showing in logs&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚮 What Finally Worked
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;“Sometimes the only fix is to wipe the slate.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  I did a &lt;strong&gt;true clean install&lt;/strong&gt; of Windows:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Downloaded the &lt;strong&gt;Windows 11 ISO&lt;/strong&gt; directly from Microsoft&lt;/li&gt;
&lt;li&gt;Created a &lt;strong&gt;bootable USB&lt;/strong&gt; using the Media Creation Tool&lt;/li&gt;
&lt;li&gt;Backed up everything manually&lt;/li&gt;
&lt;li&gt;Booted into the USB and deleted &lt;strong&gt;all partitions&lt;/strong&gt;, including:

&lt;ul&gt;
&lt;li&gt;Windows boot&lt;/li&gt;
&lt;li&gt;Recovery&lt;/li&gt;
&lt;li&gt;System Reserved&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Installed Windows 11 clean from scratch&lt;/li&gt;
&lt;li&gt;Installed only:

&lt;ul&gt;
&lt;li&gt;GPU driver&lt;/li&gt;
&lt;li&gt;Chipset driver&lt;/li&gt;
&lt;li&gt;Windows updates&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tested the game immediately&lt;/strong&gt; before installing anything else&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  🌟 Result:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No more flicker&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;No MSCTFIME UI logs&lt;/li&gt;
&lt;li&gt;Unity games worked normally in fullscreen and borderless&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ✅ Final Fix Summary (What You Should Do)
&lt;/h2&gt;

&lt;p&gt;If you’re facing the same issue:&lt;/p&gt;

&lt;h3&gt;
  
  
  Backup:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Your &lt;code&gt;Desktop&lt;/code&gt;, &lt;code&gt;Documents&lt;/code&gt;, &lt;code&gt;Downloads&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Chrome profile (&lt;code&gt;AppData\Local\Google\Chrome\User Data&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Anything else you might need to backup&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Reinstall:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Download Windows 11 ISO&lt;/li&gt;
&lt;li&gt;Create bootable USB&lt;/li&gt;
&lt;li&gt;Boot into installer&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete ALL partitions&lt;/strong&gt; on the main drive&lt;/li&gt;
&lt;li&gt;Install fresh&lt;/li&gt;
&lt;li&gt;Install GPU/Chipset drivers only&lt;/li&gt;
&lt;li&gt;Run Windows Update&lt;/li&gt;
&lt;li&gt;Test your game BEFORE installing other apps&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Optional (After confirming stability):
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Reinstall apps one by one: NZXT CAM, Razer, Logitech, etc.&lt;/li&gt;
&lt;li&gt;Stop at the first app that breaks focus again (if it does)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🤖 Who This Helps
&lt;/h2&gt;

&lt;p&gt;This guide is for anyone who:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clicks and sees &lt;strong&gt;flicker in fullscreen or borderless&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Logs show &lt;code&gt;MSCTFIME UI&lt;/code&gt; taking focus&lt;/li&gt;
&lt;li&gt;Unity games minimize or lose focus on input&lt;/li&gt;
&lt;li&gt;Tried everything short of nuking Windows&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚫 Lessons Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reset This PC&lt;/strong&gt; is not a clean install&lt;/li&gt;
&lt;li&gt;IME bugs can survive resets and wreak havoc silently&lt;/li&gt;
&lt;li&gt;Unity's input system is extremely sensitive to Windows overlay/focus bugs&lt;/li&gt;
&lt;li&gt;The only guaranteed fix is: &lt;strong&gt;Delete partitions, clean install, test raw&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>windows11</category>
      <category>troubleshooting</category>
      <category>unity3d</category>
      <category>pcgaming</category>
    </item>
  </channel>
</rss>
