Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 03:46:10 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: FX-cg Manager add-ins speed issues -  (Read 747 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 18:13:08
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Topic starter
Total Post Ratings: +2611

View Profile WWW
« on: 27 April, 2012, 09:38:56 »
0

Does anyone know if it's possible to increase the speed of add-ins that we run inside the Casio PRIZM emulator? I tried running Rainbow Dash for example and the logo (Dalan Polytechnic) took about 1 minute to go through instead of like 3 seconds shocked
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +19

View Profile WWW
« Reply #1 on: 27 April, 2012, 10:48:14 »
0

FOr emulators, you must turn off the OC...

Anyone can find a syscall who detects the model?
Logged




SimonLothar
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 20 March, 2013, 17:01:25
Date Registered: 16 February, 2011, 08:25:46
Location: Krautland
Posts: 122


Total Post Ratings: +33

View Profile
« Reply #2 on: 27 April, 2012, 17:47:22 »
0

Anyone can find a syscall who detects the model?
I think it is 0x1196. int (void). This call checks, if the byte at A0000305 is 5A.

You could query the byte at A0000305 as well.
5A: cg10
AA: cg20
55: cg??
A5: cg??
« Last Edit: 27 April, 2012, 18:13:22 by SimonLothar » Logged

I'll be back.
PierrotLL
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 02 December, 2012, 19:26:25
Date Registered: 14 February, 2011, 23:12:59
Location: France
Posts: 19


Total Post Ratings: +2

View Profile
« Reply #3 on: 28 April, 2012, 11:36:01 »
0

On the emulator, if you overclock or underclock, the result is the same, it becomes very slow.
Example with Gravity Duck :
without overclock : emulator=50FPS, calc=15FPS
with overclock : emulator=6FPS, calc=25FPS
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 18:13:08
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Topic starter
Total Post Ratings: +2611

View Profile WWW
« Reply #4 on: 28 April, 2012, 20:02:58 »
0

FOr emulators, you must turn off the OC...

Anyone can find a syscall who detects the model?
I never actually used overclocking, even on emulator.

Could it be that Ashbad's game automatically overclocks the calc by default?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
JosJuice
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: Today at 00:23:18
Date Registered: 24 September, 2010, 16:46:12
Location: Sweden
Posts: 1300


Total Post Ratings: +51

View Profile
« Reply #5 on: 29 April, 2012, 11:17:15 »
0

Could it be that Ashbad's game automatically overclocks the calc by default?
Yes. It runs a bit slow on the default speed, so it overclocks the calc automatically and then sets the original speed when the game finishes executing (unless it's already overclocked).
Logged

PierrotLL
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 02 December, 2012, 19:26:25
Date Registered: 14 February, 2011, 23:12:59
Location: France
Posts: 19


Total Post Ratings: +2

View Profile
« Reply #6 on: 29 April, 2012, 14:25:34 »
0

Yes, some games (like Rainbow Dash, Gravity Duck and Sonic) automatically overclock on start.
It would be better to detect if the program is running on emulator (maybe with Simon's proposal) and overclock only if not.

@Simon : on the emulator, syscall 0x1196 returns 0x00, but if I read directly the byte at 0xA0000305 I get 0xAA.
BTW, it's off-topic but do you know a Sleep syscall ? I think we need it, until now all games use 100% of CPU so they drain batteries. I know this function use TMU2 on fx-9860, maybe we can write an equivalent routine for Prizm.
Logged

SimonLothar
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 20 March, 2013, 17:01:25
Date Registered: 16 February, 2011, 08:25:46
Location: Krautland
Posts: 122


Total Post Ratings: +33

View Profile
« Reply #7 on: 29 April, 2012, 16:26:40 »
0

@Simon : on the emulator, syscall 0x1196 returns 0x00, but if I read directly the byte at 0xA0000305 I get 0xAA.
I do not own an emulator for the Prizm. On the legacy systems the emulator could be detected by query of the calculator id (at 0xA000FFD0) which has been eight zeros with the emulator. Maybe it is similar on the Prizm (with 0xA001FFD0 of course).

BTW, it's off-topic but do you know a Sleep syscall ? I think we need it, until now all games use 100% of CPU so they drain batteries. I know this function use TMU2 on fx-9860, maybe we can write an equivalent routine for Prizm.
What do you mean? A sleep function  (like the one of the legacy SDK) based on a timer does not save power. The MPU's sleep instruction does, but this is a different concept. The MPU's power saving sleep mode is entered when calling PowerOff (0x1839).
« Last Edit: 29 April, 2012, 18:19:54 by SimonLothar » Logged

I'll be back.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 18:13:08
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Topic starter
Total Post Ratings: +2611

View Profile WWW
« Reply #8 on: 29 April, 2012, 19:53:31 »
0

I see then. I guess maybe I could ask the authors if they could setup some sort of detection for if the game runs on emulator or not.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +19

View Profile WWW
« Reply #9 on: 29 April, 2012, 20:01:02 »
0

Yes, some games (like Rainbow Dash, Gravity Duck and Sonic) automatically overclock on start.
It would be better to detect if the program is running on emulator (maybe with Simon's proposal) and overclock only if not.

@Simon : on the emulator, syscall 0x1196 returns 0x00, but if I read directly the byte at 0xA0000305 I get 0xAA.
BTW, it's off-topic but do you know a Sleep syscall ? I think we need it, until now all games use 100% of CPU so they drain batteries. I know this function use TMU2 on fx-9860, maybe we can write an equivalent routine for Prizm.

Like the FXes Model detection syscall, the emulator yields 0x00...
Could be this a good start?
If someone could get me a confirmation, I'll expad my model detection routine
Logged




SimonLothar
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 20 March, 2013, 17:01:25
Date Registered: 16 February, 2011, 08:25:46
Location: Krautland
Posts: 122


Total Post Ratings: +33

View Profile
« Reply #10 on: 30 April, 2012, 17:18:25 »
0

Like the FXes Model detection syscall, the emulator yields 0x00...
Could be this a good start?
If someone could get me a confirmation, I'll expad my model detection routine
Detecting the model and detecting the emulator are two totally different approaches.
It is the job of the emulator to pretend being a certain model, t. i. obviously a fxCG20, hence you cannot detect the emulator by querying the model (provided the emulator is designed by a pro).
On a fxCG20 0x1196 returns 0 (A0000305 not being 5A) and on a fxCG10 it returns 1 (A0000305 being 5A).
There seem to exist (or will exist someday) two other CG-models (A5 and 55; according to A0000305). At least the OS and rumors point to this.
I recommend to try the eight bytes at A001FFD0 to detect the Prizm emulator. Please report, which calculator ID the Prizm emulator happens to has.
Logged

I'll be back.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.297 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.