Coder Social home page Coder Social logo

stardustgogeta / nes-emulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 50 MB

An NES emulator made using SDL2 and C++.

License: GNU General Public License v2.0

C++ 93.93% CMake 3.91% Python 1.70% Dockerfile 0.46%
c-plus-plus cmake emulation emulator nes sdl2

nes-emulator's Introduction

Hello there!

I'm an engineer and computer programmer with knowledge of Java, Python, C, C++, and more.

Check out my projects below!

nes-emulator's People

Stargazers

 avatar

Watchers

 avatar  avatar

nes-emulator's Issues

Multithreading too slow

After implementing multithreading to try and decouple the CPU operation from the main loop, the code runs much slower (as much as 10x slower, per my testing). This is potentially a problem for emulation speed in the future, so this may need to be replaced with a single-threaded approach that simply jumps to the proper point in the opcode execution when the next CPU cycle is triggered.

Compiling with GCC optimizations causes segmentation fault

When compiled with the -O1, -O2, or -O3 flags, the program will encounter a segmentation fault upon reaching the declaration of a std::ifstream or std::ofstream variable. The reason for this occurring is unclear, but it does not occur with -O0 or -Og.

Git Bash on Windows does not work by default with POSIX threads

In order to get multithreading (with <thread>) working on my Windows development environment, I needed to use the POSIX version of MinGW. However, it seems the executables that are built cannot be run by Git Bash for Windows. PowerShell and Windows CMD work fine, but Git Bash silently exits.

This can be fixed by deleting the file libstdc++-6.dll from C:\Program Files\Git\mingw64\bin, but this is inconvenient and may cause other negative effects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.