rubygame 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/NEWS +15 -0
- data/Rakefile +2 -1
- data/ext/rubygame/rubygame_clock.c +9 -3
- metadata +3 -3
data/NEWS
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
= NEWS
|
2
2
|
|
3
|
+
== Rubygame 2.5.1
|
4
|
+
|
5
|
+
Release focus: Bug fixes.
|
6
|
+
|
7
|
+
=== Fixes
|
8
|
+
|
9
|
+
- Fixed: Clock.delay would delay forever if the delay time and
|
10
|
+
granularity were very small.
|
11
|
+
|
12
|
+
- Fixed: Clock.delay would always be "nice" to other Ruby threads
|
13
|
+
during the final part of the delay, even if nice = false.
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
3
18
|
== Rubygame 2.5.0
|
4
19
|
|
5
20
|
Release focus: Clock improvements.
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
# The version number for Rubygame.
|
9
|
-
RUBYGAME_VERSION = [2,5,
|
9
|
+
RUBYGAME_VERSION = [2,5,1]
|
10
10
|
|
11
11
|
|
12
12
|
#
|
@@ -103,6 +103,7 @@ gem_spec = Gem::Specification.new do |s|
|
|
103
103
|
s.homepage = "http://rubygame.org/"
|
104
104
|
s.summary = "Clean and powerful library for game programming"
|
105
105
|
s.has_rdoc = true
|
106
|
+
s.rubyforge_project = "rubygame"
|
106
107
|
|
107
108
|
s.files = FileList.new do |fl|
|
108
109
|
fl.include("{lib,ext,samples,doc}/**/*")
|
@@ -164,8 +164,10 @@ static Uint32 accurate_delay(Uint32 ticks, Uint32 accuracy, int nice)
|
|
164
164
|
|
165
165
|
if(ticks >= accuracy)
|
166
166
|
{
|
167
|
-
delay =
|
168
|
-
|
167
|
+
delay = ticks - (ticks % accuracy);
|
168
|
+
delay -= 2; /* Aim low so we don't overshoot. */
|
169
|
+
|
170
|
+
if(delay >= accuracy && delay > 0)
|
169
171
|
{
|
170
172
|
rg_threaded_delay(delay, nice);
|
171
173
|
}
|
@@ -173,7 +175,11 @@ static Uint32 accurate_delay(Uint32 ticks, Uint32 accuracy, int nice)
|
|
173
175
|
|
174
176
|
do{
|
175
177
|
delay = ticks - (SDL_GetTicks() - funcstart);
|
176
|
-
|
178
|
+
|
179
|
+
if( nice == 1 )
|
180
|
+
{
|
181
|
+
rb_thread_schedule(); /* give control to ruby */
|
182
|
+
}
|
177
183
|
}while(delay > 0);
|
178
184
|
|
179
185
|
return SDL_GetTicks() - funcstart;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Croisant
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-12 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version:
|
157
157
|
requirements: []
|
158
158
|
|
159
|
-
rubyforge_project:
|
159
|
+
rubyforge_project: rubygame
|
160
160
|
rubygems_version: 1.3.1
|
161
161
|
signing_key:
|
162
162
|
specification_version: 2
|