<commit_before>{% from '_helpers.html' import author_item, browsers, compat_report_row, demo_item %}
{% set browser = browsers.firefox %}
{% set page = 'firefox.html' %}
<!doctype html>
<html lang="en" data-layout="secondary" data-browser="{{ browser.slug }}">
  <head>
    {% include '_head.html' %}
    <title>{{ browser.name }} • WebVR Rocks</title>
  </head>
  <body>
    <header id="header" class="header" role="banner">
      <div class="container section">
        {% include '_logo.html' %}

        <a class="page-heading-link" href="{{ browser.about }}">
          <h1 class="browser-name page-heading">{{ browser.name }}</h1>
          <img class="browser-icon page-heading-icon" src="{{ browser.logo }}" alt="{{ browser.name }}" title="{{ browser.name }}">
        </a>

        <p class="browser-intro page-intro">{{ (browser.description_html or browser.description)|safe }}</p>

        {% if browser.releases.latest and browser.releases.latest.status != 'stable' %}
          <p class="message message-alert">
            <strong>Warning:</strong> All <a href="#releases">Firefox Nightly releases</a> are highly experimental and subject to change!
          </p>
        {% endif %}

        <div id="download" class="download dropdown-standalone dropdown-download">
          <a href="{{ browser.landingUrl }}" itemprop="downloadUrl" class="button button-unstyled button-large button-download" data-download-name="{{ browser.slug }}" data-download-id="{{ browser.releases.latest.buildInfo.buildid }}">Download {% include "media/img/download-icon.svg" %} <span class="download-info c"><span class="download-date">{{ browser.releases.latest.dateReleased.datetimeString }}</span> <span class="download-size">{{ browser.releases.latest.fileSize }}</span></span></a>
        </div>
        <p class="view-source">
          <a href="https://dxr.mozilla.org/mozilla-central/source/dom/vr" class="button-source no-underline">View source</a>
        </p>
      </div>
    </header>

    <main id="main" class="main" role="main">
      <div class="container">
        <section id="setup" class="section setup" data-section="setup">
          <h2><a href="#setup">Setup Instructions</a></h2>
          <ol class="bullets-light">
            <li><span>Download and launch <a href="https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly">Firefox Nightly</a>.</span></li>
            <li data-headset="htc_vive"><span><a href="https://github.com/ValveSoftware/openvr/raw/b20b25705d8dd82be221fe68a61db36ae7e2608e/bin/win64/openvr_api.dll">Download version 1.0.2 (64-bit) of the <code>openvr_api.dll</code> file</a> from the <a href="https://github.com/ValveSoftware/openvr/tree/b20b25705d8dd82be221fe68a61db36ae7e2608e">OpenVR GitHub repository</a>.</span></li>
            <li data-headset="htc_vive"><span>Save the <code>openvr_api.dll</code> file somewhere on your computer where the user running Firefox can read it (e.g., <code>c:\openvr\</code>).</span></li>
            <li data-headset="htc_vive"><span>In Firefox Nightly, navigate to <code>about:config</code>; change the value of <code>dom.vr.openvr.enabled</code> to <code>true</code> and <code>gfx.vr.openvr-runtime</code> to the full path of the <code>openvr_api.dll</code> file (e.g., <code>c:\openvr\openvr_api.dll</code>).</span></li>
            <li data-headset="oculus_rift"><span>Ensure that your Oculus Home settings allow for <a href="https://blog.mozvr.com/oculus-home-rift-cv1-webvr/#enablingunknownsources">Unknown Sources</a>.</span></li>
            <li><span>On computers (especially laptops) with Nvidia chipsets, you may need to <a href="http://alteredqualia.com/texts/optimus/">enable the discrete GPU</a>.</span></li>
            <li><span>Restart Firefox Nightly.</span></li>
            <li><span>Enjoy WebVR content!</span></li>
          </ol><commit_msg>Browsers > Firefox: update instructions for discrete GPU<commit_after>{% from '_helpers.html' import author_item, browsers, compat_report_row, demo_item %}
{% set browser = browsers.firefox %}
{% set page = 'firefox.html' %}
<!doctype html>
<html lang="en" data-layout="secondary" data-browser="{{ browser.slug }}">
  <head>
    {% include '_head.html' %}
    <title>{{ browser.name }} • WebVR Rocks</title>
  </head>
  <body>
    <header id="header" class="header" role="banner">
      <div class="container section">
        {% include '_logo.html' %}

        <a class="page-heading-link" href="{{ browser.about }}">
          <h1 class="browser-name page-heading">{{ browser.name }}</h1>
          <img class="browser-icon page-heading-icon" src="{{ browser.logo }}" alt="{{ browser.name }}" title="{{ browser.name }}">
        </a>

        <p class="browser-intro page-intro">{{ (browser.description_html or browser.description)|safe }}</p>

        {% if browser.releases.latest and browser.releases.latest.status != 'stable' %}
          <p class="message message-alert">
            <strong>Warning:</strong> All <a href="#releases">Firefox Nightly releases</a> are highly experimental and subject to change!
          </p>
        {% endif %}

        <div id="download" class="download dropdown-standalone dropdown-download">
          <a href="{{ browser.landingUrl }}" itemprop="downloadUrl" class="button button-unstyled button-large button-download" data-download-name="{{ browser.slug }}" data-download-id="{{ browser.releases.latest.buildInfo.buildid }}">Download {% include "media/img/download-icon.svg" %} <span class="download-info c"><span class="download-date">{{ browser.releases.latest.dateReleased.datetimeString }}</span> <span class="download-size">{{ browser.releases.latest.fileSize }}</span></span></a>
        </div>
        <p class="view-source">
          <a href="https://dxr.mozilla.org/mozilla-central/source/dom/vr" class="button-source no-underline">View source</a>
        </p>
      </div>
    </header>

    <main id="main" class="main" role="main">
      <div class="container">
        <section id="setup" class="section setup" data-section="setup">
          <h2><a href="#setup">Setup Instructions</a></h2>
          <ol class="bullets-light">
            <li><span>Download and launch <a href="https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly">Firefox Nightly</a>.</span></li>
            <li data-headset="htc_vive"><span><a href="https://github.com/ValveSoftware/openvr/raw/b20b25705d8dd82be221fe68a61db36ae7e2608e/bin/win64/openvr_api.dll">Download version 1.0.2 (64-bit) of the <code>openvr_api.dll</code> file</a> from the <a href="https://github.com/ValveSoftware/openvr/tree/b20b25705d8dd82be221fe68a61db36ae7e2608e">OpenVR GitHub repository</a>.</span></li>
            <li data-headset="htc_vive"><span>Save the <code>openvr_api.dll</code> file somewhere on your computer where the user running Firefox can read it (e.g., <code>c:\openvr\</code>).</span></li>
            <li data-headset="htc_vive"><span>In Firefox Nightly, navigate to <code>about:config</code>; change the value of <code>dom.vr.openvr.enabled</code> to <code>true</code> and <code>gfx.vr.openvr-runtime</code> to the full path of the <code>openvr_api.dll</code> file (e.g., <code>c:\openvr\openvr_api.dll</code>).</span></li>
            <li data-headset="oculus_rift"><span>Ensure that your Oculus Home settings allow for <a href="https://blog.mozvr.com/oculus-home-rift-cv1-webvr/#enablingunknownsources">Unknown Sources</a>.</span></li>
            <li><span>For PCs (especially laptops) using Nvidia chipsets, there are several methods of <a href="https://alteredqualia.com/texts/optimus/">enabling the discrete GPU</a>. One way is from the <a href="https://www.nvidia.com/Download/Find.aspx">NVIDIA Control Panel</a>: Load <code>3D Settings</code> <code>&gt;</code> <code>Manage 3D Settings</code> <code>&gt;</code> <code>Program Settings</code> tab, and select <strong>Mozilla Firefox (firefox.exe)</strong> (with the blue Nightly icon) as the program to customize, and select <strong>&ldquo;High-performance NVIDIA processor"</strong> as the preferred graphics processor.</span></li>
            <li><span>Restart Firefox Nightly.</span></li>
            <li><span>Enjoy WebVR content!</span></li>
          </ol>
{'fraction_non_alphanumeric': 0.17854098161003532, 'fraction_numerical': 0.014858117159907442, 'mean_word_length': 3.8649289099526065, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 234, 'https://': 12, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 29, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '309324', 'n_tokens_mistral': 2736, 'n_tokens_neox': 2548, 'n_words': 547}