Final Fantasy XIV Lag Fix: How to Lower Ping for Raids and Trials


Network Performance Issues in Final Fantasy XIV

Double weaving in Final Fantasy XIV becomes impossible above 100ms ping, turning optimal rotations into clunky button mashing. High latency also shrinks your slidecast window and creates desyncs between server-side and client-side positioning during Savage raid mechanics like Asphodelos P3S adds phase or Dragonsong’s War Ultimate nailsets.

How to Check If You Have a Lag Problem

FFXIV doesn’t display ping in-game, so you need external tools to diagnose latency issues. Install XIVLauncher with the Dalamud plugin framework, then add the “Simple Tweaks” plugin which includes a ping display overlay. This shows real-time latency to your current data center.

For manual testing, open Command Prompt and ping your data center directly. North American servers (Aether, Primal, Crystal, Dynamis) are located in Sacramento, California at IP ranges 204.2.229.x. European servers (Chaos, Light) run from Frankfurt, Germany. Japanese servers (Elemental, Gaia, Mana, Meteor) operate from Tokyo. Oceanic Materia servers are in Sydney, Australia.

Use this command: ping -t 204.2.229.9 for NA data centers. Replace the IP with your specific server if known. Good ping ranges are:

  • 0-30ms: Perfect for all content including Ultimate raids
  • 31-70ms: Excellent, double weaving works flawlessly
  • 71-100ms: Good, slight slidecast window reduction
  • 101-150ms: Playable but double weaving becomes unreliable
  • 151ms+: Major gameplay issues, avoid high-end content

Network lag shows as delayed ability animations and rubber-banding movement. FPS lag appears as stuttering visuals but responsive controls. Open Windows Resource Monitor > Network tab and look for “ffxiv_dx11.exe” to see active connections and data transfer rates during gameplay.

Check packet loss by running ping -t -l 1472 204.2.229.9 for 2 minutes. Any dropped packets indicate network instability. Jitter above 10ms creates inconsistent ability timing. Run pathping 204.2.229.9 to identify which network hops are adding latency between your PC and the FFXIV servers.

DNS Server Optimization

Change your DNS servers to Cloudflare’s 1.1.1.1 and 1.0.0.1 for North American players. These provide faster domain resolution and better routing to FFXIV’s Sacramento data centers compared to most ISP DNS servers.

Navigate to Settings > Network & Internet > Ethernet (or Wi-Fi) > Change adapter options. Right-click your connection, select Properties, then Internet Protocol Version 4 (TCP/IPv4). Click Properties again and select “Use the following DNS server addresses.” Enter 1.1.1.1 as preferred and 1.0.0.1 as alternate.

For European players, try Quad9’s 9.9.9.9 and 149.112.112.112 which often route better to Frankfurt servers. Japanese and Oceanic players should test Google’s 8.8.8.8 and 8.8.4.4 alongside Cloudflare to determine which provides lower latency to their respective regions.

Flush your DNS cache after making changes. Open Command Prompt as administrator and run ipconfig /flushdns then ipconfig /renew. Restart your router to clear its DNS cache as well. Test ping before and after DNS changes to verify improvement.

Port Forwarding Configuration

Forward these specific ports for FFXIV through your router’s admin panel (typically 192.168.1.1 or 192.168.0.1):

  • TCP: 54992-54994, 55006-55007, 55021-55040
  • UDP: 55296-55551

Access your router settings and find Port Forwarding or Virtual Server settings. Create separate rules for each port range, pointing to your PC’s internal IP address (find this with ipconfig in Command Prompt). Set your PC to a static IP first to prevent the forwarded ports from breaking when your internal IP changes.

In Network and Sharing Center, click “Change adapter settings,” right-click your connection, select Properties, then Internet Protocol Version 4. Choose “Use the following IP address” and enter an address like 192.168.1.100 (check your router’s DHCP range to avoid conflicts). Use your router’s IP as the default gateway and the DNS servers configured earlier.

Some routers support UPnP which automatically handles port forwarding. Enable UPnP in your router settings and in Windows Firewall > Advanced Settings > Inbound Rules, ensure FFXIV has permission through both private and public networks.

Quality of Service (QoS) Setup

Configure QoS rules to prioritize FFXIV traffic over other network activity. In your router’s QoS settings, create a gaming rule that prioritizes traffic on the FFXIV ports listed above. Set FFXIV to “Highest” priority and limit streaming devices and downloads to “Low” priority.

Modern routers with “Gaming Mode” or “Game Accelerator” features automatically prioritize gaming traffic. Enable these modes in routers like ASUS ROG series, Netgear Nighthawk Pro Gaming, or Linksys WRT gaming routers. These detect gaming applications by packet inspection and apply priority automatically.

For advanced users, set up custom QoS bandwidth allocation. Reserve 10-15% of your total bandwidth exclusively for gaming traffic. If you have 100 Mbps download, reserve 10-15 Mbps for gaming with guaranteed minimum bandwidth. This prevents other devices from saturating your connection during raids.

Windows 10/11 includes built-in QoS packet scheduling. Open Group Policy Editor (gpedit.msc) and navigate to Computer Configuration > Administrative Templates > Network > QoS Packet Scheduler. Enable “Limit reservable bandwidth” and set it to 0% to allow programs to use 100% of bandwidth when needed instead of the default 20% limitation.

Wired Connection Optimization

Switch from WiFi to ethernet cable immediately. WiFi adds 5-20ms latency compared to wired connections, and wireless interference causes packet loss during busy network periods. Use Cat 6 ethernet cables for connections under 55 meters and Cat 6a for longer runs.

Disable WiFi adapter completely when using ethernet to prevent Windows from routing traffic through both connections simultaneously. In Device Manager, find your wireless adapter under Network adapters and select “Disable device.” This forces all traffic through the more stable wired connection.

Check ethernet adapter settings in Device Manager. Right-click your ethernet adapter, select Properties > Advanced tab. Disable “Green Ethernet” or “Energy Efficient Ethernet” which can cause micro-disconnections. Set “Speed & Duplex” to 1.0 Gbps Full Duplex instead of Auto Negotiation if your router supports gigabit speeds.

Replace old ethernet cables that are Cat 5 or lower. Cat 5e supports gigabit speeds but Cat 6 provides better interference shielding. Avoid running ethernet cables parallel to power lines, and keep them away from wireless routers, microwaves, and fluorescent lighting that can cause electromagnetic interference.

Related: Game Lag Fix: Every Cause of In-Game Lag Solved for PC and Console

ISP Routing and Peering Issues

Some ISPs route FFXIV traffic through suboptimal paths that add 30-50ms latency. Comcast, Cox, and Spectrum users frequently experience poor routing to FFXIV’s Sacramento servers. Contact your ISP’s technical support and request a routing trace to 204.2.229.9 if your ping is consistently high despite local network optimization.

Business internet plans from the same ISP often use different routing infrastructure with better peering agreements. Comcast Business, for example, typically routes more directly to major gaming servers compared to residential Xfinity service. The cost difference may be worthwhile for serious raiders dealing with ISP routing issues.

Document your routing issues with traceroute evidence. Run tracert 204.2.229.9 and screenshot results showing where latency spikes occur. ISPs are more likely to investigate routing problems when provided with specific technical data showing which network hops are problematic.

Consider switching ISPs if routing problems persist. Fiber providers like Verizon FiOS, Google Fiber, and regional providers often have superior peering agreements with gaming networks compared to cable ISPs. Check availability and latency reports from other gamers in your area before switching.

MTU Size Optimization

Incorrect MTU (Maximum Transmission Unit) size causes packet fragmentation that increases latency and reduces network efficiency. Find your optimal MTU by testing progressively smaller sizes until packets transmit without fragmentation.

Start with ping -f -l 1472 204.2.229.9 in Command Prompt. If you receive “Packet needs to be fragmented but DF set,” reduce the packet size by 10 and test again with ping -f -l 1462 204.2.229.9. Continue reducing until ping succeeds without fragmentation. Add 28 bytes to your successful ping size to get optimal MTU (1472 + 28 = 1500 MTU).

Set MTU in Network and Sharing Center > Change adapter settings. Right-click your connection, select Properties > Configure > Advanced tab. Find “Jumbo Packet” or “MTU Size” and set to your tested value. Most home connections work best with 1500 MTU, but some ISPs require 1492 or lower.

For advanced configuration, use netsh commands. Open Command Prompt as administrator and run netsh interface ipv4 show subinterfaces to find your adapter name. Then set MTU with netsh interface ipv4 set subinterface “Ethernet” mtu=1500 store=persistent (replace “Ethernet” with your actual adapter name).

DNS Cache and Network Stack Reset

Corrupted network configurations accumulate over time and cause routing inefficiencies. Reset your entire network stack to eliminate these issues. Open Command Prompt as administrator and run these commands in sequence:

  • netsh winsock reset
  • netsh int ip reset
  • ipconfig /release
  • ipconfig /flushdns
  • ipconfig /renew

Restart your computer after running these commands. Windows will rebuild network configurations from scratch, eliminating corrupted entries that may have been causing routing delays or connection instability.

Clear browser DNS cache and network settings that can interfere with game connections. In Chrome, type chrome://net-internals/#dns and click “Clear host cache.” Firefox users should type about:networking#dns and clear DNS cache there. These browsers maintain separate DNS caches that can conflict with system-level changes.

Reset router to factory settings if network problems persist across multiple devices. This eliminates accumulated configuration errors and firmware glitches that develop over months of operation. Reconfigure port forwarding, QoS, and DNS settings after reset using a wired connection to prevent wireless interference during setup.

Battle Effects and Animation Settings

Reduce visual clutter that causes framerate drops during busy raid encounters. Navigate to Character Configuration > Control Settings > Character tab. Set “Battle Effects Settings” to “Show Limited” for party members and “Show None” for other PCs. This eliminates screen clutter during 24-player alliance raids and busy hunt trains without hiding important party member telegraphs.

In System Configuration > Other Settings, disable “Cutscene Skip Confirmation” and enable “Skip playback of previously viewed cutscenes.” This prevents accidental cutscene triggers during dungeon speedruns that can cause brief network disconnections or party desynchronization.

Turn off “Display flying text” for others’ actions in Character Configuration > UI Settings > HUD tab. Flying damage numbers from 23 other players in alliance raids create unnecessary network traffic and processing overhead. Keep your own flying text enabled for DPS optimization.

Disable screen shake and camera collision in System Configuration > Other Settings. Screen shake during large boss attacks can mask important visual cues for mechanics, while camera collision causes jarring perspective changes that interfere with positioning during precise movement phases.

Graphics Settings for Stable Performance

Open System Configuration > Graphics Settings and optimize for consistent framerate over visual fidelity. Set “Shadow Cascading” to Low instead of High – this provides the largest performance improvement in duties with multiple light sources. High shadow settings can drop framerate below 60fps during busy raid encounters on mid-range graphics cards.

Change “Ambient Occlusion” from HBAO+ to Standard. HBAO+ creates more realistic lighting but significantly impacts performance on GTX 1660 Ti and RX 580 class cards. Standard ambient occlusion maintains visual quality while preserving framerate stability during intensive fights.

Still lagging after trying everything?

WTFast reroutes your game traffic through optimized servers — cutting ping by 30-50% for most players.

Start Your Free WTFast Trial →

Disable “Tessellation” completely unless using RTX 3070 or RX 6700 XT or better graphics cards. Tessellation adds geometric detail to surfaces but causes framerate drops when multiple players gather in cities like Limsa Lominsa or during large-scale PvP battles in Frontlines.

Set “Grass Quality” to Off for raid content. Outdoor trials like Emerald Weapon Extreme or zones like The Tempest render excessive grass detail that serves no gameplay purpose but consumes GPU resources. Enable grass only for screenshot sessions or casual overworld exploration.

Character and Object Rendering Limits

Reduce “Character and Object Quantity” to Minimum in populated areas. This setting controls how many other players render simultaneously. In busy hubs like Limsa Lominsa Lower Decks or Eulmore, hundreds of players can overwhelm both network bandwidth and rendering performance on older systems.

Navigate to System Configuration > Graphics Settings > General tab and set “LOD on Distant Objects” to Maximum. This forces objects to use lower-detail models at distance, reducing polygon count and texture memory usage during large-scale encounters or busy social areas.

Disable “Real-time Reflections” unless using high-end graphics cards. Real-time reflections double rendering workload by drawing scenes twice – once normally and once for reflection surfaces. Water reflections in zones like Costa del Sol or shiny armor surfaces can cause severe framerate drops during combat.

Lower “Texture Detail” from High to Normal if using graphics cards with 4GB VRAM or less. High texture settings require 6-8GB VRAM during busy raid encounters with multiple detailed boss models and environmental effects. VRAM overflow forces texture streaming from system RAM, causing stuttering.

Audio Settings for Performance

Reduce “Number of Sounds Played at Once” from Maximum to Normal in System Configuration > Sound Settings. Maximum sound channels can overwhelm audio processing during 24-player content where dozens of abilities trigger simultaneously. This setting particularly impacts systems using integrated audio or older sound cards.

Disable “Play sounds when window is not active” to reduce background processing when Alt+tabbed. This prevents FFXIV from continuing audio processing while minimized, freeing CPU resources for other applications and reducing potential audio driver conflicts.

Set “Sound Effects” volume to 80% instead of 100% to prevent audio distortion during loud encounters. Some boss attacks like Ultima Weapon’s Tank Purge or certain limit breaks can cause audio clipping that creates crackling sounds and increased CPU usage from audio error correction.

Change audio output to 44.1kHz 16-bit instead of higher sampling rates unless using professional audio interfaces. Higher audio quality increases processing overhead without meaningful benefit for game audio. Reserve high-quality audio settings for music production or media consumption.

NVIDIA Graphics Driver Optimization

Open NVIDIA Control Panel and navigate to “Manage 3D Settings” > “Program Settings.” Add FFXIV (ffxiv_dx11.exe) and configure these specific settings:

  • Power management mode: Prefer maximum performance
  • Texture filtering – Quality: Performance
  • Threaded optimization: On
  • Vertical sync: Fast (reduces input lag vs traditional V-sync)
  • Low Latency Mode: Ultra (for RTX 20/30/40 series cards)

Enable “Image Sharpening” with 0.50 sharpening and 0.17 film grain reduction if playing at 1080p on a 1440p monitor. This improves visual clarity when running non-native resolutions without the performance cost of increasing in-game resolution scaling.

Update to the latest Game Ready drivers through GeForce Experience or manual download from nvidia.com. NVIDIA frequently releases optimizations for major FFXIV patches and expansions. Install drivers using “Custom Installation” and check “Perform a clean installation” to remove conflicting legacy driver files.

Related: Warframe Lag Fix: How to Fix Host Migration and High Ping

Related: ARK Survival Ascended Lag Fix: How to Stop Server Lag and Stuttering

For RTX cards, enable “Hardware-accelerated GPU scheduling” in Windows Settings > System > Display > Graphics settings. This feature reduces CPU overhead when the GPU is heavily utilized, improving framerate stability during visually intensive raid encounters or busy social areas.

AMD Graphics Driver Optimization

Open AMD Radeon Software and navigate to Gaming > Global Graphics or find FFXIV in your games list. Configure these performance settings:

  • Anti-Lag: Enabled (reduces input latency)
  • Radeon Chill: Disabled (prevents framerate throttling)
  • Enhanced Sync: Enabled (better than V-sync for variable framerates)
  • Texture Filtering Quality: Performance
  • Surface Format Optimization: Enabled

Enable “Smart Access Memory” if using Ryzen 5000/7000 series CPU with RX 6000/7000 series GPU on a compatible motherboard. This feature allows the CPU to access full GPU memory, improving performance in VRAM-intensive scenarios like high-resolution textures or busy raid environments.

Use AMD Cleanup Utility before installing new drivers to prevent conflicts. Download the utility from AMD’s support site, run it in Safe Mode, then install fresh drivers. This process eliminates corrupted driver files that can cause stuttering, crashes, or reduced performance.

For RX 6000/7000 series cards, enable “Rage Mode” in Radeon Software for automatic overclocking. This increases GPU clocks and memory speeds safely within thermal and power limits, providing 5-10% performance improvement without manual tuning or stability risks.

Windows System Optimization

Change Windows Power Plan to “High Performance” or “Ultimate Performance” in Control Panel > Power Options. Balanced power plans throttle CPU and GPU clocks to save energy, causing framerate drops during intensive gameplay moments. High Performance maintains maximum clock speeds consistently.

Set FFXIV process priority to “High” in Task Manager. Launch FFXIV, open Task Manager, find “ffxiv_dx11.exe” under Processes tab, right-click and select “Set Priority” > “High.” This ensures Windows allocates more CPU time to FFXIV when system resources are contested by background applications.

Disable “Game Mode” in Windows Settings > Gaming if experiencing stuttering issues. Game Mode is intended to optimize performance but can cause problems with some DirectX 11 applications. Test both enabled and disabled to determine which provides better performance on your specific hardware configuration.

Enable “Hardware-accelerated GPU scheduling” in Windows Settings > System > Display > Graphics Settings > Change default graphics settings. This reduces CPU overhead for graphics processing, particularly beneficial on systems with powerful GPUs but weaker CPUs like pairing RTX 3080 with older Intel i5 processors.

Background Process Management

Close unnecessary applications before launching FFXIV to free system resources. Common resource-heavy programs include Chrome with multiple tabs, Discord with hardware acceleration enabled, streaming software like OBS, and RGB control software like iCUE or Synapse which continuously monitor hardware.

Disable Windows Update automatic downloads during gaming sessions. Open Settings > Update & Security > Windows Update > Advanced options and change “Active hours” to cover your typical gaming schedule. This prevents Windows from downloading updates in the background while raiding.

Use MSI Afterburner’s “On-Screen Display” instead of multiple monitoring applications. Running GPU-Z, HWiNFO64, and CPU-Z simultaneously creates unnecessary overhead. MSI Afterburner provides all essential monitoring (temperatures, usage, framerate) in a single lightweight overlay.

Disable startup programs that aren’t essential. Open Task Manager > Startup tab and disable programs with “High” startup impact. Common culprits include Spotify, Steam, Adobe Updater, and manufacturer software suites. Keep antivirus and essential drivers enabled but disable everything else.

Memory and Storage Optimization

Install FFXIV on an SSD to eliminate loading-related network timeouts. Mechanical hard drives cause 15-30 second zone loading times that can result in duty finder penalties or disconnections during instance transitions. NVMe SSDs reduce loading to 3-5 seconds, maintaining stable connections.

Increase virtual memory if using 16GB RAM or less. Navigate to System Properties > Performance Settings > Advanced > Virtual Memory. Set initial size to 4096MB and maximum size to 8192MB on your primary SSD. This prevents memory-related stuttering during memory-intensive content like large-scale PvP or hunt trains.

Run Windows Memory Diagnostic to identify faulty RAM modules that cause game crashes and connection instability. Type “Windows Memory Diagnostic” in Start menu and select “Restart now and check for problems.” Faulty RAM causes random disconnections and error 90002 network issues.

Clear FFXIV cache files periodically to remove corrupted temporary data. Navigate to Documents\My Games\FINAL FANTASY XIV – A Realm Reborn and delete the “cache” folder contents. FFXIV rebuilds these files automatically, eliminating corrupted cache entries that cause loading delays or graphical glitches.

Advanced Configuration File Tweaks

Edit FFXIV configuration files to enable additional performance optimizations not available through in-game menus. Navigate to Documents\My Games\FINAL FANTASY XIV – A Realm Reborn\FFXIV_CHR[character ID]\FFXIV_BOOT.cfg and make a backup copy before editing.

Add these lines to reduce network buffering:

  • NetworkBuffering 0
  • MouseBuffering 0
  • PadBuffering 0

Edit FFXIV_CHR[character ID]\FFXIV.cfg to modify graphics settings beyond in-game limits. Find “ShadowLOD” and set to 0 for minimum shadow distance. Set “ShadowVisibilityTypeSelf” to 0 to disable your own character’s shadow, which provides minor performance improvement in first-person view.

Increase “NetworkTimeout” value from default 10000 to 30000 if experiencing frequent 90002 disconnections on unstable connections. This extends the timeout before FFXIV considers a connection lost, reducing disconnections during brief network hiccups.

Set “CutsceneMovieOpening” to 0 to skip the opening movie that plays before the title screen. This reduces FFXIV startup time by 30-45 seconds and eliminates a potential crash point on systems with codec issues or insufficient VRAM for video playback.

PlayStation 5 Network Optimization

Configure PS5 network settings for optimal FFXIV performance. Navigate to Settings > System > Console Information > Network and test internet connection to view current speeds and NAT type. NAT Type 2 is optimal for gaming – NAT Type 3 can cause duty finder and party connection issues.

Set custom DNS servers in Settings > System > Network > Settings > Set Up Internet Connection. Select your connection method and choose “Custom” setup. Use 1.1.1.1 and 1.0.0.1 for primary and secondary DNS. These often provide better routing to FFXIV servers compared to ISP default DNS.

Adjust MTU settings during network setup. Most connections work best with MTU 1500, but test 1492 and 1472 if experiencing connection stability issues. Higher MTU values can cause packet fragmentation that increases latency and connection drops during busy gameplay periods.

Enable “Boost Mode” in Settings > System if using compatible external storage. This increases CPU and GPU clocks slightly, providing better performance in demanding areas like Limsa Lominsa or during 24-player alliance raids where framerate typically drops below 60fps on standard settings.

Router-Specific Gaming Features

ASUS routers with “Adaptive QoS” automatically prioritize gaming traffic when enabled. Access router settings at 192.168.1.1, navigate to Adaptive QoS > Game Settings, and enable “Gaming Boost.” This feature detects FFXIV traffic patterns and applies priority without manual port configuration.

Netgear Nighthawk routers include “Dynamic QoS” that automatically allocates bandwidth based on application needs. Enable this in router admin panel under Dynamic QoS settings. Set gaming applications to “Highest” priority and streaming/downloading to “Low” priority for optimal traffic management.

Linksys WRT series routers support OpenWrt firmware for advanced QoS customization. Flash OpenWrt firmware and install SQM (Smart Queue Management) packages for superior bufferbloat control. Configure fq_codel queue discipline to maintain low latency even when bandwidth is fully utilized.

For mesh router systems like Eero or Nest Wifi, connect your gaming PC to the main router unit via ethernet rather than satellite nodes. Satellite connections add 10-20ms latency and reduce available bandwidth due to wireless backhaul overhead between mesh nodes.

Still lagging after trying everything?

WTFast reroutes your game traffic through optimized servers — cutting ping by 30-50% for most players.

Start Your Free WTFast Trial →

Frequently Asked Questions

Why does my ping spike during prime time hours in FFXIV?

Server congestion and ISP traffic management cause ping increases during 7-11 PM local time. FFXIV servers experience highest load during these hours, particularly on weekends and patch release days. ISPs also implement traffic shaping during peak usage periods that can add 20-50ms to gaming connections. Consider switching to a business internet plan or gaming-focused ISP to avoid residential traffic management policies.

Can I reduce lag by switching data centers or using World Visit?

Yes, but physical distance determines ping more than server population. North American players will always have better latency to Aether/Primal/Crystal/Dynamis (Sacramento) than European Chaos/Light servers (Frankfurt). World Visit maintains your ping to the home data center, but Data Center Travel changes your connection to the visited region’s physical servers. Use Data Center Travel only if the target region is geographically closer to your location.

Does double weaving really require under 100ms ping?

Double weaving becomes unreliable above 100ms and impossible above 150ms due to server-side GCD timing validation. At high ping, the server receives your second oGCD ability after the next GCD window opens, causing ability queuing delays or complete inability failures. Test your double weaving capability on training dummies – if abilities frequently don’t activate or show delayed animations, your ping is too high for optimal rotation execution.

Why do I get 2002 lobby errors during login?

Error 2002 indicates server-side login queue congestion, not client network issues. This occurs during expansion launches, major patch releases, or when returning from extended maintenance. No amount of client-side network optimization fixes 2002 errors. Wait 10-15 minutes between retry attempts to avoid being placed at the back of login queues, and avoid using login macros or rapid retry attempts that can temporarily IP ban your connection.

Should I use a gaming VPN to reduce FFXIV lag?

Gaming VPNs can improve routing if your ISP has poor peering agreements with FFXIV’s network infrastructure. Test your current routing with tracert commands first – if you see major latency spikes at specific network hops between your ISP and FFXIV servers, a VPN might provide better routing paths. However, VPNs add encryption overhead and extra network hops, so they often increase latency rather than reduce it. Only use VPNs if you’ve confirmed ISP routing problems through technical analysis.

Ty Sutherland

With over a decade in game network and hardware optimization, Ty is a seasoned expert committed to enhancing your gaming experience. He's worked with industry leaders across platforms, from PC to mobile, advocating for accessible, cutting-edge optimization tools. At "Fix Game Lag," Ty keeps you updated on the latest gaming resources and solutions, leveling the playing field for all gamers.

Recent Posts