Change namespace from translation related classes to ChocolArm64.Translation, other minor tweaks

This commit is contained in:
gdkchan 2019-01-27 19:41:56 -02:00
commit 9d0e48518e
11 changed files with 13 additions and 8 deletions

View file

@ -1,5 +1,6 @@
using ChocolArm64.Memory; using ChocolArm64.Memory;
using ChocolArm64.State; using ChocolArm64.State;
using ChocolArm64.Translation;
using System; using System;
using System.Threading; using System.Threading;

View file

@ -1,4 +1,5 @@
using ChocolArm64.Events; using ChocolArm64.Events;
using ChocolArm64.Translation;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View file

@ -6,7 +6,7 @@ using System.Collections.ObjectModel;
using System.Reflection; using System.Reflection;
using System.Reflection.Emit; using System.Reflection.Emit;
namespace ChocolArm64 namespace ChocolArm64.Translation
{ {
class TranslatedSub class TranslatedSub
{ {

View file

@ -1,4 +1,4 @@
namespace ChocolArm64 namespace ChocolArm64.Translation
{ {
enum TranslationTier enum TranslationTier
{ {

View file

@ -2,11 +2,10 @@ using ChocolArm64.Decoders;
using ChocolArm64.Events; using ChocolArm64.Events;
using ChocolArm64.Memory; using ChocolArm64.Memory;
using ChocolArm64.State; using ChocolArm64.State;
using ChocolArm64.Translation;
using System; using System;
using System.Threading; using System.Threading;
namespace ChocolArm64 namespace ChocolArm64.Translation
{ {
public class Translator public class Translator
{ {

View file

@ -4,7 +4,7 @@ using System.Diagnostics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
namespace ChocolArm64 namespace ChocolArm64.Translation
{ {
class TranslatorCache class TranslatorCache
{ {

View file

@ -1,10 +1,12 @@
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Threading; using System.Threading;
namespace ChocolArm64 namespace ChocolArm64.Translation
{ {
class TranslatorQueue class TranslatorQueue
{ {
//This is the maximum numbers of functions that the queue can hold to be translated.
//The value may need some tuning to find the sweet spot.
private const int MaxQueueSize = 1024; private const int MaxQueueSize = 1024;
private ConcurrentStack<TranslatorQueueItem>[] _translationQueue; private ConcurrentStack<TranslatorQueueItem>[] _translationQueue;

View file

@ -1,6 +1,6 @@
using ChocolArm64.State; using ChocolArm64.State;
namespace ChocolArm64 namespace ChocolArm64.Translation
{ {
struct TranslatorQueueItem struct TranslatorQueueItem
{ {

View file

@ -100,7 +100,7 @@ namespace Ryujinx.Graphics.Graphics3d
SetCullFace(State); SetCullFace(State);
SetDepth(State); SetDepth(State);
SetStencil(State); SetStencil(State);
//SetScissor(State); SetScissor(State);
SetBlending(State); SetBlending(State);
SetColorMask(State); SetColorMask(State);
SetPrimitiveRestart(State); SetPrimitiveRestart(State);

View file

@ -1,6 +1,7 @@
using ChocolArm64; using ChocolArm64;
using ChocolArm64.Events; using ChocolArm64.Events;
using ChocolArm64.Memory; using ChocolArm64.Memory;
using ChocolArm64.Translation;
using Ryujinx.Common; using Ryujinx.Common;
using Ryujinx.Common.Logging; using Ryujinx.Common.Logging;
using Ryujinx.HLE.Exceptions; using Ryujinx.HLE.Exceptions;

View file

@ -1,6 +1,7 @@
using ChocolArm64; using ChocolArm64;
using ChocolArm64.Memory; using ChocolArm64.Memory;
using ChocolArm64.State; using ChocolArm64.State;
using ChocolArm64.Translation;
using NUnit.Framework; using NUnit.Framework;