Skip to content
Snippets Groups Projects
  1. Aug 07, 2018
    • Lioncash's avatar
      nvflinger: Use std::string_view in OpenDisplay() · 7e49881b
      Lioncash authored
      We don't need to use a std::string here, given all that's done is
      comparing the character sequence against another. This allows passing
      regular const char* without needing to heap allocate.
      7e49881b
  2. Aug 04, 2018
    • Lioncash's avatar
      video_core: Eliminate the g_renderer global variable · 6030c5ce
      Lioncash authored
      We move the initialization of the renderer to the core class, while
      keeping the creation of it and any other specifics in video_core. This
      way we can ensure that the renderer is initialized and doesn't give
      unfettered access to the renderer. This also makes dependencies on types
      more explicit.
      
      For example, the GPU class doesn't need to depend on the
      existence of a renderer, it only needs to care about whether or not it
      has a rasterizer, but since it was accessing the global variable, it was
      also making the renderer a part of its dependency chain. By adjusting
      the interface, we can get rid of this dependency.
      6030c5ce
  3. Jul 24, 2018
  4. Jul 19, 2018
    • Lioncash's avatar
      nvflinger: Emplace Display instances directly · f3daecaf
      Lioncash authored
      We can use emplace_back to construct the Display instances directly,
      instead of constructing them separately and copying them, avoiding the
      need to copy std::string and std::vector instances that are part of the
      Display struct.
      f3daecaf
  5. Jul 18, 2018
  6. Jul 17, 2018
  7. Jul 03, 2018
  8. Apr 30, 2018
  9. Apr 24, 2018
  10. Apr 20, 2018
  11. Apr 19, 2018
  12. Mar 03, 2018
  13. Feb 14, 2018
  14. Feb 12, 2018
  15. Jan 22, 2018
Loading