Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 10:01:39 *
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] 2   Go Down
  Print  
Author Topic: Animated titlescreen optimizing code -  (Read 701 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Keoni29
LV9 Veteran (Next: 1337)
*********
Online Online

Gender: Male
Last Login: Today at 09:43:18
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« on: 22 October, 2011, 10:12:49 »
0

The code for my animated titlescreen got really big. Can someone help me optimize it?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
:Lbl TITLE
:copy(GDB20,L6,768
:DispGraph
:Pause 500
:copy(GDB21,L6,768
:DispGraph
:Pause 500
:Lbl F
:copy(GDB22,L6,768
:DispGraph
:Pause 500
:copy(GDB23,L6,768
:DispGraph
:Repeat getKey(54)
:For(30)
:SinReg1640,4000
:End
:For(A,0,300
:If getKey(15)
:Return
:End
:SinReg1100,1000
:End
:End
:For(A,0,5
:sub(NOISE,10,500
:copy(GDB22,L6,768
:DispGraph
:sub(NOISE,15,500
:copy(GDB23,L6,768
:DispGraph
:Pause 20
:End
:ClrDraw
:DrawInv
:DispGraph
:Pause 1000
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 02:07:40
Date Registered: 15 August, 2010, 09:18:54
Posts: 3188


Total Post Ratings: +219

View Profile
« Reply #1 on: 22 October, 2011, 10:20:35 »
0

If you stored all the pictures in one GDB variable, the code looks something like this:


1
2
3
4
5
6
While(screen active)
copy(gdb+O,L6,768)
O+768^(768*number of frames) ->O
pause 500
end
Logged

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:59:20
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #2 on: 22 October, 2011, 15:27:55 »
0

can u show us the pictures? there is a possibility for optimization there.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Keoni29
LV9 Veteran (Next: 1337)
*********
Online Online

Gender: Male
Last Login: Today at 09:43:18
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #3 on: 22 October, 2011, 15:29:53 »
0

I use OS pictures. Those are a given size isn't it? (if it aint there is some space black I can cut off)
« Last Edit: 22 October, 2011, 15:30:14 by Keoni29 » Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Camdenmil
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 05:32:15
Date Registered: 04 June, 2010, 04:26:29
Location: Disassembling something
Posts: 118


Total Post Ratings: +4

View Profile
« Reply #4 on: 22 October, 2011, 15:42:56 »
0

They can be different sizes but you have to create them with axe. You can make a program that will copy all the pics you use into one and you could get rid of the unused black space in the process. note: if you defined all the pics one right after another, they are all right after eachother in memory. Example:


1
2
3
Pic1->GDB1
Pic2->GDB2
Copy(GDB1+768,L6,768) ;displays Pic2
Logged

It is bad luck to be superstitious.
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:59:20
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #5 on: 22 October, 2011, 15:44:00 »
0

well, it is highly likely in an animated title screen, that the next frame will have similarities with the prior, thus we oonly have to do a little shifting around.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Keoni29
LV9 Veteran (Next: 1337)
*********
Online Online

Gender: Male
Last Login: Today at 09:43:18
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #6 on: 22 October, 2011, 15:46:46 »
0

They can be different sizes but you have to create them with axe. You can make a program that will copy all the pics you use into one and you could get rid of the unused black space in the process. note: if you defined all the pics one right after another, they are all right after eachother in memory. Example:


1
2
3
Pic1->GDB1
Pic2->GDB2
Copy(GDB1+768,L6,768) ;displays Pic2
Do I have to export in plain hex code?
well, it is highly likely in an animated title screen, that the next frame will have similarities with the prior, thus we oonly have to do a little shifting around.
Nah it's a fading in/out animation. You cant do that.
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:59:20
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #7 on: 22 October, 2011, 15:48:49 »
0

can you give us a screeny?
if it fades in and out, you can just use shade()....
« Last Edit: 22 October, 2011, 15:48:57 by Happybobjr » Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Keoni29
LV9 Veteran (Next: 1337)
*********
Online Online

Gender: Male
Last Login: Today at 09:43:18
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #8 on: 22 October, 2011, 15:50:37 »
+1

Nope it's more complex than that.
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:59:20
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #9 on: 22 October, 2011, 16:02:27 »
0

can you make a screeny of just the title screen please....
and put it in25% speed in wabbit.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Keoni29
LV9 Veteran (Next: 1337)
*********
Online Online

Gender: Male
Last Login: Today at 09:43:18
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #10 on: 22 October, 2011, 16:05:12 »
0

Why? I have posted a screenshot in the post above you.
« Last Edit: 22 October, 2011, 16:08:41 by Keoni29 » Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:59:20
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #11 on: 22 October, 2011, 16:16:54 »
0

i see the screeny for 40 sec or so.  only 3 of which are the title screen....
thanks

HOw many bytes is it right now?
« Last Edit: 22 October, 2011, 16:31:28 by Happybobjr » Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Stefan Bauwens
Creator of Myst 89 - סטיבן
LV10 31337 u53r (Next: 2000)
**********
Online Online

Gender: Male
Last Login: Today at 10:00:33
Date Registered: 25 February, 2011, 15:41:10
Location: Belgium
Posts: 1708


Total Post Ratings: +129

View Profile WWW
« Reply #12 on: 22 October, 2011, 16:56:43 »
0

I love the screenshots. For some reason they are not visible for me. But when I right click them I can view them.
Logged

Keoni29
LV9 Veteran (Next: 1337)
*********
Online Online

Gender: Male
Last Login: Today at 09:43:18
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #13 on: 22 October, 2011, 17:13:23 »
0

Never mind people. It's optimized a lot right now Grin
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:59:20
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #14 on: 22 October, 2011, 18:06:42 »
0

I love the screenshots. For some reason they are not visible for me. But when I right click them I can view them.

they disappear for some reason on me.  then after 80 or so refreshes, they reappear.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Pages: [1] 2   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.396 seconds with 31 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.