• Web sitemizin içeriğine ve tüm hizmetlerimize erişim sağlamak için Web sitemize kayıt olmalı ya da giriş yapmalısınız. Web sitemize üye olmak tamamen ücretsizdir.

dgVoodoo 2 for DirectX : DirectX 7-8-9 Oyunlarını Windows11 DirectX11-12 Hale Getirin

TRWE_2012

لِيَغْفِرَ لَكَ اللّٰهُ مَا تَقَدَّمَ مِنْ ذَنْبِك
Moderatör
Konum
BERTUNA
Forum Yaşı
6 Yıl 5 Ay
Mesajlar
5,490
Tepkime puanı
17,210
Merhabalar

Forum'da olmayan bir konu ile karşınızdayım...

iu

Anlatımı kendime göre hazırladım.Sizler bunu okuyarak kendinize uyarlayın

Um2xlZS.png

Resmi Web Sayfa Ve Yardım-Kılavuz Sayfası : https://dege.fw.hu/dgVoodoo2/dgVoodoo2/
GitHUB Sayfası : https://github.com/dege-diosg/dgVoodoo2

VİRÜS TARAMA SONUÇLARI (benim için kritik işlemdir ve kullanıcı alışkanlığıdır)

Güncel Panda AV Taraması :

ue3u0Z1.png

Bende Kurulu ClamAV+PS1 Otomasyon AV Taraması (başka hiçbir Windows sisteminde yoktur.)
eAxVfLi.png

"NASIL YAPILIR?" VİDEOSU :


"dgVoodoo 2 for DirectX" Video Arama Sonuçları :

NOT (BONUS BİLGİ) :

Windows TopProcess v3.ps1

KOD İÇERİĞİ :

Kod:
<#
.SYNOPSIS
    En çok CPU ve RAM harcayan uygulamaları gruplandırarak listeler.
.DESCRIPTION
    Aynı isimli süreçleri tek satırda toplar, sistem RAM özeti gösterir,
    her tabloya TOPLAM satırı ekler.
.NOTES
    PowerShell 5.1+ / 7+ üzerinde çalışır.
#>

[CmdletBinding()]
param(
    [int]$Top = 10,
    [switch]$Refresh,
    [switch]$Anlik,
    [string]$Csv = ""
)

# ==================================================================
# Anlık CPU haritası
# ==================================================================
function Get-InstantCpuByName {
    param([int]$CpuCount)

    $map = @{}
    try {
        $samples = Get-Counter '\Process(*)\% Processor Time' -ErrorAction Stop
        foreach ($s in $samples.CounterSamples) {
            $rawName = $s.InstanceName
            if ($rawName -match '^(_total|idle)$') { continue }
            $procName = $rawName -replace '#\d+$', ''
            if (-not $map.ContainsKey($procName)) { $map[$procName] = 0 }
            $map[$procName] += $s.CookedValue
        }
        foreach ($k in @($map.Keys)) {
            $map[$k] = [math]::Round($map[$k] / $CpuCount, 2)
        }
    } catch {
        return $null
    }
    return $map
}

# ==================================================================
# Süreçleri topla ve grupla
# ==================================================================
function Get-TopProcesses {
    param([switch]$Anlik)

    $cpuCount = [Environment]::ProcessorCount
    $totalRam = (Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory

    $excludeNames = @('powershell', 'powershell_ise', 'pwsh')
    $excludeIds   = @(0, 4)

    $rawProcs = Get-Process -ErrorAction SilentlyContinue |
        Where-Object {
            $_.Id -notin $excludeIds -and
            $_.ProcessName -notin $excludeNames
        }

    $instantCpu = $null
    if ($Anlik) {
        $instantCpu = Get-InstantCpuByName -CpuCount $cpuCount
        if ($null -eq $instantCpu) {
            Write-Warning "Anlık CPU ölçümü başarısız; ortalama yöntem kullanılacak."
        }
    }

    $grouped = $rawProcs | Group-Object ProcessName | ForEach-Object {
        $name = $_.Name
        $grp  = $_.Group

        [long]$wsSum = 0
        [long]$pmSum = 0
        foreach ($p in $grp) {
            try { if ($null -ne $p.WorkingSet64)        { $wsSum += [long]$p.WorkingSet64 }        } catch { }
            try { if ($null -ne $p.PrivateMemorySize64) { $pmSum += [long]$p.PrivateMemorySize64 } } catch { }
        }

        if ($null -ne $instantCpu -and $instantCpu.ContainsKey($name)) {
            $cpu = $instantCpu[$name]
        } else {
            $cpu = 0
            foreach ($p in $grp) {
                try {
                    if ($null -ne $p.CPU -and $p.CPU -gt 0) {
                        $up = (Get-Date) - $p.StartTime
                        if ($up.TotalSeconds -gt 0) {
                            $cpu += ($p.CPU / $up.TotalSeconds / $cpuCount) * 100
                        }
                    }
                } catch { }
            }
            $cpu = [math]::Round($cpu, 2)
        }

        [PSCustomObject]@{
            'Uygulama'      = $name
            'Adet'          = $_.Count
            'CPU %'         = $cpu
            'RAM (WS) MB'   = [math]::Round($wsSum / 1MB, 2)
            'RAM (Priv) MB' = [math]::Round($pmSum / 1MB, 2)
            'RAM %'         = [math]::Round(($pmSum / $totalRam) * 100, 2)
        }
    }

    return $grouped
}

# ==================================================================
# Panel
# ==================================================================
function Show-Dashboard {
    param(
        [int]$Count,
        [switch]$Anlik,
        [string]$CsvPath = ""
    )

    Clear-Host
    $mode = if ($Anlik) { "ANLIK" } else { "ORTALAMA" }

    # --- Sistem RAM özeti ---
    $os         = Get-CimInstance Win32_OperatingSystem
    $totalRamMB = [math]::Round($os.TotalVisibleMemorySize / 1024, 2)
    $freeRamMB  = [math]::Round($os.FreePhysicalMemory / 1024, 2)
    $usedRamMB  = $totalRamMB - $freeRamMB
    $usedRamPct = if ($totalRamMB -gt 0) { [math]::Round(($usedRamMB / $totalRamMB) * 100, 2) } else { 0 }

    Write-Host "==============================================================="
    Write-Host "          SİSTEM KAYNAK KULLANIM RAPORU  [$mode]"
    Write-Host "          Zaman: $(Get-Date -Format 'dd.MM.yyyy HH:mm:ss')"
    Write-Host "          RAM: $totalRamMB MB toplam | $usedRamMB MB kullanılan (%$usedRamPct) | $freeRamMB MB boş"
    Write-Host "==============================================================="

    $data = Get-TopProcesses -Anlik:$Anlik

    # --- Toplamlar (tüm süreçler) ---
    [double]$sumCpu   = 0
    [long]  $sumAdet  = 0
    [double]$sumWs    = 0
    [double]$sumPriv  = 0
    [double]$sumPct   = 0
    foreach ($r in $data) {
        $sumCpu  += [double]$r.'CPU %'
        $sumAdet += [long]$r.Adet
        $sumWs   += [double]$r.'RAM (WS) MB'
        $sumPriv += [double]$r.'RAM (Priv) MB'
        $sumPct  += [double]$r.'RAM %'
    }

    # --- CPU tablosu ---
    Write-Host ""
    Write-Host "EN ÇOK CPU KULLANANLAR (Top $Count)"
    $cpuRows = $data | Sort-Object 'CPU %' -Descending |
        Select-Object -First $Count 'Uygulama','Adet','CPU %','RAM (WS) MB','RAM (Priv) MB'
    $cpuTotal = [PSCustomObject]@{
        'Uygulama'      = 'TOPLAM'
        'Adet'          = $sumAdet
        'CPU %'         = [math]::Round($sumCpu, 2)
        'RAM (WS) MB'   = [math]::Round($sumWs, 2)
        'RAM (Priv) MB' = [math]::Round($sumPriv, 2)
    }
    ($cpuRows + $cpuTotal) | Format-Table -AutoSize

    # --- RAM tablosu ---
    Write-Host ""
    Write-Host "EN ÇOK RAM KULLANANLAR (Top $Count)"
    $ramRows = $data | Sort-Object 'RAM (Priv) MB' -Descending |
        Select-Object -First $Count 'Uygulama','Adet','RAM (Priv) MB','RAM (WS) MB','RAM %'
    $ramTotal = [PSCustomObject]@{
        'Uygulama'      = 'TOPLAM'
        'Adet'          = $sumAdet
        'RAM (Priv) MB' = [math]::Round($sumPriv, 2)
        'RAM (WS) MB'   = [math]::Round($sumWs, 2)
        'RAM %'         = [math]::Round($sumPct, 2)
    }
    ($ramRows + $ramTotal) | Format-Table -AutoSize

    Write-Host "==============================================================="

    # --- CSV ---
    if ($CsvPath) {
        try {
            $data |
                Sort-Object 'RAM (Priv) MB' -Descending |
                Select-Object @{N='Zaman';E={Get-Date -Format 'yyyy-MM-dd HH:mm:ss'}},
                              'Uygulama','Adet','CPU %','RAM (WS) MB','RAM (Priv) MB','RAM %' |
                Export-Csv -Path $CsvPath -NoTypeInformation -Encoding UTF8
            Write-Host "CSV kaydedildi: $CsvPath"
        } catch {
            Write-Warning "CSV yazılamadı: $($_.Exception.Message)"
        }
    }
}

# ==================================================================
# Ana akış
# ==================================================================
if ($Refresh) {
    try {
        while ($true) {
            Show-Dashboard -Count $Top -Anlik:$Anlik -CsvPath $Csv
            Start-Sleep -Seconds 2
        }
    } finally {
        Write-Host ""
        Write-Host "İzleme durduruldu. Çıkmak için bir tuşa basın..." -NoNewline
        $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
        Write-Host ""
    }
} else {
    Show-Dashboard -Count $Top -Anlik:$Anlik -CsvPath $Csv
    Write-Host ""
    Write-Host "Devam etmek için bir tuşa basın..." -NoNewline
    $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
    Write-Host ""
}

EKRAN GÖRÜNTÜSÜ : ( Sistem : Windows11 26H2 R9711 x64 Home TR)

0tfJ242.png

İyi Oyunlar Ve Eğlenceler...


TRWE_2012

Alaydan Yetişme PC Kullanıcısı
​
 
Geri
Üst